From 0e4b828d7e193108f54e86d6cead3f79303b14ec Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Tue, 11 Sep 2012 12:09:25 +0000 Subject: [PATCH 1/2] jqplot: fix refresh rate under monitor tab for now --- js/server_status_monitor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index ec1bd668ce..4f945e3c92 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -468,7 +468,8 @@ $(function() { runtime.xmax = new Date().getTime() - server_time_diff + monitorSettings.gridRefresh; $.each(runtime.charts, function(key, value) { - value.chart.xAxis[0].setExtremes(runtime.xmin, runtime.xmax, false); + value.chart['axes']['xaxis']['max'] = runtime.xmax; + value.chart['axes']['xaxis']['min'] = runtime.xmin; }); runtime.refreshTimeout = setTimeout(refreshChartGrid, monitorSettings.gridRefresh); From 095083369a5508a92e4a78912e7619f3a815c4c4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 11 Sep 2012 12:42:31 -0400 Subject: [PATCH 2/2] Remove call to old Highcharts code --- js/server_status.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/server_status.js b/js/server_status.js index aa4c7d4440..264f5a6a76 100644 --- a/js/server_status.js +++ b/js/server_status.js @@ -482,7 +482,6 @@ $(function() { .hide() .after('
'); } - tabChart[$tab.attr('id')] = PMA_createChart(settings); $(link).html(PMA_messages['strStaticData']); $tab.find('.buttonlinks a.tabRefresh').hide(); $tab.find('.buttonlinks .refreshList').show();