Remove previous queries if any before inserting the latest query. We
don't want too many queries crowding up.
This commit is contained in:
@@ -38,7 +38,11 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
PMA_ajaxShowMessage(data.message);
|
PMA_ajaxShowMessage(data.message);
|
||||||
window.parent.db = data.newname;
|
window.parent.db = data.newname;
|
||||||
$("#topmenucontainer").after(data.sql_query);
|
$("#topmenucontainer")
|
||||||
|
.next('div')
|
||||||
|
.remove()
|
||||||
|
.end()
|
||||||
|
.after(data.sql_query);
|
||||||
|
|
||||||
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
||||||
buttons: button_options
|
buttons: button_options
|
||||||
|
@@ -133,7 +133,11 @@ $(document).ready(function() {
|
|||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
$("#add_user_dialog").dialog("close").remove();
|
$("#add_user_dialog").dialog("close").remove();
|
||||||
PMA_ajaxShowMessage(data.message);
|
PMA_ajaxShowMessage(data.message);
|
||||||
$("#topmenucontainer").after(data.sql_query);
|
$("#topmenucontainer")
|
||||||
|
.next('div')
|
||||||
|
.remove()
|
||||||
|
.end()
|
||||||
|
.after(data.sql_query);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : "+data.error, "7000");
|
||||||
|
@@ -265,7 +265,11 @@ $(document).ready(function() {
|
|||||||
$.post($(the_form).attr('action'), $(the_form).serialize(), function(data) {
|
$.post($(the_form).attr('action'), $(the_form).serialize(), function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true) {
|
||||||
PMA_ajaxShowMessage(data.message);
|
PMA_ajaxShowMessage(data.message);
|
||||||
$("#topmenucontainer").after(data.sql_query);
|
$("#topmenucontainer")
|
||||||
|
.next('div')
|
||||||
|
.remove()
|
||||||
|
.end()
|
||||||
|
.after(data.sql_query);
|
||||||
$(the_form).find('input:reset').trigger('click');
|
$(the_form).find('input:reset').trigger('click');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user