[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_8-10708-gbe5b3b5

Marc Delisle lem9 at users.sourceforge.net
Sun Oct 31 12:32:44 CET 2010


The branch, master has been updated
       via  be5b3b5c6460868f2353ae2211d9a9a0c5f064aa (commit)
      from  a1e318fbec97cae0965e843bca50b0a1677222e2 (commit)


- Log -----------------------------------------------------------------
commit be5b3b5c6460868f2353ae2211d9a9a0c5f064aa
Author: Marc Delisle <marc at infomarc.info>
Date:   Sun Oct 31 07:32:36 2010 -0400

    do not append ajax_request more than once

-----------------------------------------------------------------------

Summary of changes:
 js/tbl_change.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/js/tbl_change.js b/js/tbl_change.js
index 3608b40..700995c 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -286,7 +286,9 @@ $(document).ready(function() {
         event.preventDefault();
 
         PMA_ajaxShowMessage();
-        $(the_form).append('<input type="hidden" name="ajax_request" value="true" />');
+        if (! the_form.find('input:hidden').is('#ajax_request_hidden')) {
+            the_form.append('<input type="hidden" id="ajax_request_hidden" name="ajax_request" value="true" />');
+        }
 
         $.post($(the_form).attr('action'), $(the_form).serialize(), function(data) {
             if(data.success == true) {


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list