From fd2e5e226d7bbc8fc91a17967e365b9438f5d375 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Wed, 30 Jun 2010 00:33:11 +0530 Subject: [PATCH] Removed the $.append() calls that were conflicting with document.write() on the demo server. Instead, generating the div on the fly and not appending it to the DOM. --- js/server_privileges.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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,