From 86b2aeee83803adc2911252b2fb5cca7bbdbd34d Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 9 Sep 2014 20:13:20 +0200 Subject: [stats] Allow clicking everywhere --- static/js/kosten.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'static/js/kosten.js') diff --git a/static/js/kosten.js b/static/js/kosten.js index b0860b7..eea79dc 100644 --- a/static/js/kosten.js +++ b/static/js/kosten.js @@ -137,6 +137,20 @@ } } }, + chart: { + events: { + click: function(){ + var i$, ref$, len$, p; + for (i$ = 0, len$ = (ref$ = this.series[0].data).length; i$ < len$; ++i$) { + p = ref$[i$]; + if (p.state) { + constDialog.apply(p); + break; + } + } + } + } + }, xAxis: { minTickInterval: month, minRange: month -- cgit v1.2.3-70-g09d2