Noticed a bug in the dialog close buttons. The html was not destroyed

after closing, so added a .remove() call everywhere.
This commit is contained in:
ninadsp
2010-06-25 00:30:23 +05:30
parent a8073a1875
commit 217968fb92
3 changed files with 9 additions and 9 deletions

View File

@@ -1798,14 +1798,14 @@ jQuery.fn.PMA_confirm = function(question, url, callbackFn) {
.prepend(question)
.dialog({
buttons: {"OK": function(){
$(this).dialog("close");
$(this).dialog("close").remove();
if($.isFunction(callbackFn)) {
callbackFn.call(this, url);
}
},
"Cancel": function(){
$(this).dialog("close");
$(this).dialog("close").remove();
}
}
});
@@ -1935,4 +1935,4 @@ $(document).ready(function() {
})
})
}, 'top.frame_content'); //end $(document).ready()
}, 'top.frame_content'); //end $(document).ready() for db_structure.php