From e464fa9eec0d11c80b3542bcdb37ad19de658a14 Mon Sep 17 00:00:00 2001 From: alisonjm Date: Wed, 25 May 2011 18:19:44 +0000 Subject: Fixed bug with windows selection resetting. --- src/lib/rrdFlot.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js index 812ed1c..dd09b5c 100644 --- a/src/lib/rrdFlot.js +++ b/src/lib/rrdFlot.js @@ -441,7 +441,6 @@ rrdFlot.prototype.bindFlotGraph = function(flot_obj) { }; var flot_data=flot_obj.data; - //document.write(flot_data); var graph_data=this.selection_range.trim_flot_data(flot_data); var scale_data=flot_data; @@ -458,10 +457,7 @@ rrdFlot.prototype.bindFlotGraph = function(flot_obj) { rf_this.scale.setSelection(ranges,true); window_min = ranges.xaxis.from; window_max = ranges.xaxis.to; - } else { - window_min=0; - window_max=0; - } + } if (this.selection_range.isSet()) { this.scale.setSelection(this.selection_range.getFlotRanges(),true); //don't fire event, no need -- cgit v1.2.3