[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_7-10223-g3159d90

Marc Delisle lem9 at users.sourceforge.net
Sun Sep 19 17:17:00 CEST 2010


The branch, master has been updated
       via  3159d9086707b9a84fe706b3a411deec8ce67bf2 (commit)
      from  316ea9f006d1409103e81f3f7f23c137ddf49f85 (commit)


- Log -----------------------------------------------------------------
commit 3159d9086707b9a84fe706b3a411deec8ce67bf2
Author: Marc Delisle <marc at infomarc.info>
Date:   Sun Sep 19 11:16:52 2010 -0400

    hidden field should just be added once

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

Summary of changes:
 js/tbl_select.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/js/tbl_select.js b/js/tbl_select.js
index 97de181..95c60a8 100644
--- a/js/tbl_select.js
+++ b/js/tbl_select.js
@@ -31,10 +31,13 @@ $(document).ready(function() {
 
         PMA_ajaxShowMessage(PMA_messages['strSearching']);
 
-        $(this).append('<input type="hidden" name="ajax_request" value="true" />');
+	// add this hidden field just once 
+	if (! $(this).find('input:hidden').is('#ajax_request_hidden')) {
+        	$(this).append('<input type="hidden" id="ajax_request_hidden" name="ajax_request" value="true" />');
+	}
 
         $.post($(this).attr('action'), $(this).serialize(), function(data) {
             $("#searchresults").html(data);
         })
     })
-}, 'top.frame_content'); // end $(document).ready()
\ No newline at end of file
+}, 'top.frame_content'); // end $(document).ready()


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list