From 25f3188b562e071b1d2fce83b5ef47aff1f3e9fc Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 3 Aug 2011 13:55:32 +0200 Subject: [PATCH] limit time interval to [1.1.1970;now] to (related to bug #80) --- htdocs/frontend/javascripts/wui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/frontend/javascripts/wui.js b/htdocs/frontend/javascripts/wui.js index daddb30..4b89185 100644 --- a/htdocs/frontend/javascripts/wui.js +++ b/htdocs/frontend/javascripts/wui.js @@ -252,6 +252,10 @@ vz.wui.zoom = function(from, to) { vz.options.plot.xaxis.min = new Date().getTime() - delta; } + if (vz.options.plot.xaxis.min < 0) { + vz.options.plot.xaxis.min = 0; + } + vz.options.plot.yaxis.max = null; // autoscaling vz.options.plot.yaxis.min = 0; // fixed to 0