From 02cab0b768b01a6c7b4c8b57362e992d1078c644 Mon Sep 17 00:00:00 2001 From: Random Hacker Date: Thu, 21 Jul 2011 21:52:10 +0200 Subject: webapp: 500 werte, native sqL --- ebus/webapp/static/ebus.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ebus/webapp/static') 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 { -- cgit v1.2.1