The branch, master has been updated via 964664525cd657ba52e82dd47c4314143ccd2516 (commit) from 7a40f19f8a00ea73df9d03d50d5e95c455420317 (commit)
- Log ----------------------------------------------------------------- commit 964664525cd657ba52e82dd47c4314143ccd2516 Author: Marc Delisle marc@infomarc.info Date: Tue Jul 19 12:16:16 2011 -0400
Streamline jQuery usage
-----------------------------------------------------------------------
Summary of changes: js/sql.js | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/js/sql.js b/js/sql.js index 5c48578..3f778e1 100644 --- a/js/sql.js +++ b/js/sql.js @@ -334,16 +334,18 @@ $(document).ready(function() { var $msgbox = PMA_ajaxShowMessage();
/** - * @var $the_form Object referring to the form element that paginates the results table + * @var $form Object referring to the form element that paginates the results table */ - var $the_form = $(this).parent("form"); + var $form = $(this).parent("form"); + + var $sqlqueryresults = $("#sqlqueryresults");
- $the_form.append('<input type="hidden" name="ajax_request" value="true" />'); + PMA_prepareForAjaxRequest($form);
- $.post($the_form.attr('action'), $the_form.serialize(), function(data) { - $("#sqlqueryresults").html(data); - $("#sqlqueryresults").trigger('appendAnchor'); - $("#sqlqueryresults").trigger('makegrid'); + $.post($form.attr('action'), $form.serialize(), function(data) { + $sqlqueryresults.html(data); + $sqlqueryresults.trigger('appendAnchor'); + $sqlqueryresults.trigger('makegrid'); PMA_init_slider();
PMA_ajaxRemoveMessage($msgbox);
hooks/post-receive