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


- Log -----------------------------------------------------------------
commit 3159d9086707b9a84fe706b3a411deec8ce67bf2
Author: Marc Delisle <[email protected]>
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

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to