summaryrefslogtreecommitdiff
path: root/ebus/webapp/static
diff options
context:
space:
mode:
Diffstat (limited to 'ebus/webapp/static')
-rw-r--r--ebus/webapp/static/ebus.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ebus/webapp/static/ebus.js b/ebus/webapp/static/ebus.js
index 15fe692..32e9f3a 100644
--- a/ebus/webapp/static/ebus.js
+++ b/ebus/webapp/static/ebus.js
@@ -99,7 +99,8 @@ $(document).ready(function(){
$("#overview").bind("plotselected", function (event, ranges) {
range_from = Math.round(ranges.xaxis.from / 1000);
range_to = Math.round(ranges.xaxis.to / 1000);
- if (range_to - range_from > 4 * 24 * 60 * 60) {
+ // max selection range 14 days
+ if (range_to - range_from > 14 * 24 * 60 * 60) {
plotOverview.setSelection({xaxis: {'from': from*1000, 'to': to*1000}}, true);
return;
} else {