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.
This commit is contained in:
ninadsp
2010-06-30 00:33:11 +05:30
parent e32644ea09
commit fd2e5e226d

View File

@@ -141,9 +141,8 @@ $(document).ready(function() {
}; };
button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); } button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); }
$(this).append('<div id="add_user_dialog"></div>');
$.get($(this).attr("href"), {'ajax_request':true}, function(data) { $.get($(this).attr("href"), {'ajax_request':true}, function(data) {
$("#add_user_dialog") $('<div id="add_user_dialog"></div>')
.prepend(data) .prepend(data)
.find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user .find("#fieldset_add_user_footer").hide() //showing the "Go" and "Create User" buttons together will confuse the user
.end() .end()
@@ -205,9 +204,8 @@ $(document).ready(function() {
var button_options = {}; var button_options = {};
button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); } button_options[PMA_messages['strCancel']] = function() { $(this).dialog("close").remove(); }
$(this).append('<div id="edit_user_dialog"></div>'); $.get($(this).attr('href'), {'ajax_request':true, 'edit_user_dialog': true}, function(data) {
$.get($(this).attr('href'), {'ajax_request':true}, function(data) { $('<div id="edit_user_dialog"></div>')
$("#edit_user_dialog")
.append(data) .append(data)
.dialog({ .dialog({
width: 900, width: 900,