From aed767c3d85c7f6740609dff5f45393c726310a2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 10 Sep 2012 12:18:03 -0400 Subject: [PATCH] Improve speed, see the comment on https://github.com/phpmyadmin/phpmyadmin/commit/04698355e48775da41ddef37b5323e36ad3f6be3 --- js/tbl_chart.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/tbl_chart.js b/js/tbl_chart.js index cab99cd9cb..ce7a4c633c 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -12,23 +12,23 @@ $(document).ready(function() { chart_xaxis_idx = $('select[name="chartXAxis"]').attr('value'); // from jQuery UI - $('div#resizer').resizable({ + $('#resizer').resizable({ minHeight:240, minWidth:300 }); - $('div#resizer').bind('resizestop', function(event,ui) { + $('#resizer').bind('resizestop', function(event,ui) { // make room so that the handle will still appear - $('div#querychart').height($('div#resizer').height() * 0.96); - $('div#querychart').width($('div#resizer').width() * 0.96); + $('#querychart').height($('#resizer').height() * 0.96); + $('#querychart').width($('#resizer').width() * 0.96); currentChart.replot( {resetAxes: true}) }); var nonJqplotSettings = { chart: { type: 'line', - width: $('div#resizer').width() - 20, - height: $('div#resizer').height() - 20 + width: $('#resizer').width() - 20, + height: $('#resizer').height() - 20 } } @@ -119,8 +119,8 @@ $(document).ready(function() { }); function drawChart() { - nonJqplotSettings.chart.width = $('div#resizer').width() - 20; - nonJqplotSettings.chart.height = $('div#resizer').height() - 20; + nonJqplotSettings.chart.width = $('#resizer').width() - 20; + nonJqplotSettings.chart.height = $('#resizer').height() - 20; // todo: a better way using .replot() ? if (currentChart != null) {