From 3159d9086707b9a84fe706b3a411deec8ce67bf2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 19 Sep 2010 11:16:52 -0400 Subject: [PATCH] hidden field should just be added once --- js/tbl_select.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/tbl_select.js b/js/tbl_select.js index 97de18113a..95c60a8864 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(''); + // add this hidden field just once + if (! $(this).find('input:hidden').is('#ajax_request_hidden')) { + $(this).append(''); + } $.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()