From 041a5837c5f6a6107efffb2fbd894afd29bd4b1c Mon Sep 17 00:00:00 2001 From: ninadsp Date: Thu, 15 Jul 2010 16:18:46 +0530 Subject: [PATCH] Added an Ajax handler to the display options form --- js/sql.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/js/sql.js b/js/sql.js index 649f0ae5c..01d97cc70 100644 --- a/js/sql.js +++ b/js/sql.js @@ -7,6 +7,9 @@ $(document).ready(function() { + /** + * @var disp_mode current value of the direction in which the table is displayed + */ var disp_mode = $("#top_direction_dropdown").val(); $("#top_direction_dropdown, #bottom_direction_dropdown").live('change', function(event) { @@ -80,6 +83,17 @@ $(document).ready(function() { }) })//end Sort results table + //displayOptionsForm handler + $("#displayOptionsForm").live('submit', function(event) { + event.preventDefault(); + + $.post($(this).attr('action'), $(this).serialize() + '&ajax_request=true' , function(data) { + $("#sqlqueryresults").html(data); + }) + }) + //end displayOptionsForm handler + + //Inline Edit $(".edit_row_anchor").live('click', function(event) { event.preventDefault();