diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-06-10 17:33:26 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-06-10 17:33:26 +0400 |
commit | c4a307f91506e52252d9ed585af437ce476400ae (patch) | |
tree | 1f69ab844dc4cca49d78fd0e220c744fb2d837d6 | |
parent | 3df8ff1e34a108e0ec7d870ce4c667d4706bcc62 (diff) |
Fix bug introduced due to incremental variable
-rw-r--r-- | js/tbl_zoom_plot_jqplot.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js index 7476db0e2f..27f977c164 100644 --- a/js/tbl_zoom_plot_jqplot.js +++ b/js/tbl_zoom_plot_jqplot.js @@ -264,7 +264,7 @@ $(document).ready(function() { //Find changed values by comparing form values with selectedRow Object var newValues = new Object();//Stores the values changed from original var sqlTypes = new Object(); - var it = 4; + var it = 0; var xChange = false; var yChange = false; for (key in selectedRow) { @@ -550,14 +550,14 @@ $(document).ready(function() { $('div#querychart').bind('jqplotDataClick', function(event, seriesIndex, pointIndex, data) { - searchedDataKey = data[4]; // key from searchedData (global) - var field_id = 4; + searchedDataKey = data[0]; // key from searchedData (global) + var field_id = 0; var post_params = { 'ajax_request' : true, 'get_data_row' : true, 'db' : window.parent.db, 'table' : window.parent.table, - 'where_clause' : data[3], + 'where_clause' : data[0], 'token' : window.parent.token }; |