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

@@ -34,9 +34,9 @@ $(document).ready(function() {
width: 900,
buttons : {
"Create Table" : function() {
//handle form here
$('#create_table_form').trigger("submit");
},
"Cancel" : function() {$(this).dialog('close');}
"Cancel" : function() {$(this).dialog('close').remove() ;}
}
});
})
@@ -63,7 +63,7 @@ $(document).ready(function() {
window.parent.refreshMain();
},
"No" : function() {
$(this).dialog("close");
$(this).dialog("close").remove();
}
}
}) //end dialog options