Home Disable auto popup when delete an item
Reply: 0

Disable auto popup when delete an item

Marcel Published in 2018-01-12 20:38:28Z

I has inserted a popup that it's appears when the user is going to delete in an item, asking if wants to delete these item. The problem is after I has clicked in any button in this popup, appears another auto popup saying 'Delete this menu?'. I can not disable this auto popup. How do I do this?

When I click in this highlighted button, appears this popup (that's correct).

But when I has clicked in 'Ok' or 'Cancelar', appears another popup as show below image. This popup doesn't be in the code. How do I disable this popup?

$html.= '<li class="dd-item dd3-item" data-id="'.$lista[$i]->getObj()->getSTop_id().'" view-value="'.$lista[$i]->getObj()->getSTop_visualizacao().'">
        <div class="dd-handle dd3-handle"></div>
        <div class="dd3-content"><span style="font-weight: bold; font-size: 14px;" id="label_show'.$lista[$i]->getObj()->getSTop_id().'">'.$lista[$i]->getObj()->getSTop_nome().'</span>
    <span class="span-right"><a class="del-button" name="'.$lista[$i]->getObj()->getSTop_id().'" id="'.$lista[$i]->getObj()->getSTop_quant_elem().'"><i class="fa fa-trash"></i></a></span> 

$(".del-button").unbind("click").click(function (e) {


    var idItem = $(this).attr('name');
    var quantFilhos = $(this).attr('id');
    var $li = $(this).closest('li');

    var div = document.getElementById("dom-target");
    var myData = div.textContent;

    myData = myData+'/admin/control/ajax/remocao.php';

    if(quantFilhos == 0){
        if (confirm('Are you sure to delete this item?')) {

                url: myData,
                type: 'POST',
                data: {id: idItem, tipo: 'stop'},
                dataType: 'html',
                async: false,
                success: function(response) {

                    var result = $.trim(response);

                    if(result === "sucesso") {


                    } else if(result === "erro") {




You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.348135 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO