Remove previous queries if any before inserting the latest query. We

don't want too many queries crowding up.
This commit is contained in:
ninadsp
2010-07-11 00:14:12 +05:30
parent 6230a545bf
commit e98edae53b
3 changed files with 15 additions and 3 deletions

View File

@@ -133,7 +133,11 @@ $(document).ready(function() {
if(data.success == true) {
$("#add_user_dialog").dialog("close").remove();
PMA_ajaxShowMessage(data.message);
$("#topmenucontainer").after(data.sql_query);
$("#topmenucontainer")
.next('div')
.remove()
.end()
.after(data.sql_query);
}
else {
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");