diff --git a/js/db_operations.js b/js/db_operations.js index c6a6bac90..b48c42ed9 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -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 diff --git a/js/functions.js b/js/functions.js index 753ed27f6..ea2db949f 100755 --- a/js/functions.js +++ b/js/functions.js @@ -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() \ No newline at end of file +}, 'top.frame_content'); //end $(document).ready() for db_structure.php \ No newline at end of file diff --git a/js/server_privileges.js b/js/server_privileges.js index 3d70c0d03..bff67c012 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -142,7 +142,7 @@ $(document).ready(function() { //We also need to post the value of the submit button in order to get this to work correctly $.post($(the_form).attr('action'), $(the_form).serialize() + "&adduser_submit=" + $(this).find("input[name=adduser_submit]").attr('value'), function(data) { if(data.success == true) { - $("#add_user_dialog").dialog("close"); + $("#add_user_dialog").dialog("close").remove(); PMA_ajaxShowMessage(data.message); } else { @@ -150,7 +150,7 @@ $(document).ready(function() { } }) }, - "Cancel" : function() {$(this).dialog("close")} + "Cancel" : function() {$(this).dialog("close").remove();} } //buttons end }); //dialog options end }); @@ -224,7 +224,7 @@ $(document).ready(function() { .dialog({ width : 500, buttons: {"Close" : function() { - $(this).dialog("close"); + $(this).dialog("close").remove(); }} }); }) //end $.get