From ac1bdef78428ec60500574f320d815d17ba6a327 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 23 Jan 2011 07:18:09 -0500 Subject: [PATCH] Remove unneeded wrapping of jQuery object Avoid unneeded generating of hidden field --- js/db_operations.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/db_operations.js b/js/db_operations.js index 502ca0d00..93d13c479 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -85,9 +85,12 @@ $(document).ready(function() { event.preventDefault(); PMA_ajaxShowMessage(PMA_messages['strCopyingDatabase']); - $(this).append(''); + $form = $(this); + if (! $form.find('input:hidden').is('#ajax_request_hidden')) { + $form.append(''); + } - $.get($(this).attr('action'), $(this).serialize(), function(data) { + $.get($form.attr('action'), $form.serialize(), function(data) { if(data.success == true) { PMA_ajaxShowMessage(data.message); if( $("#checkbox_switch").is(":checked")) {