diff --git a/js/server_privileges.js b/js/server_privileges.js index 6ce6b4426..558de6feb 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -141,9 +141,8 @@ $(document).ready(function() { }; button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); } - $(this).append('
'); $.get($(this).attr("href"), {'ajax_request':true}, function(data) { - $("#add_user_dialog") + $('
') .prepend(data) .find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user .end() @@ -205,9 +204,8 @@ $(document).ready(function() { var button_options = {}; button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); } - $(this).append('
'); - $.get($(this).attr('href'), {'ajax_request':true}, function(data) { - $("#edit_user_dialog") + $.get($(this).attr('href'), {'ajax_request':true, 'edit_user_dialog': true}, function(data) { + $('
') .append(data) .dialog({ width: 900,