From c941c29b7a212dbe17801649a2fdaac6b065799a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 9 Sep 2014 13:29:13 +0200 Subject: Fix Javascript --- static/js/kosten.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'static/js/kosten.js') diff --git a/static/js/kosten.js b/static/js/kosten.js index 4600a24..ccb3d6a 100644 --- a/static/js/kosten.js +++ b/static/js/kosten.js @@ -100,11 +100,12 @@ setLang(); month = 30 * 24 * 60 * 60 * 1000; constDialog = function(){ - var df; + var df, time; df = Highcharts.dateFormat; - $.get(df('/stats/_const/%Y/%d', this.x), function(data){ + time = this.x; + $.get(df('/stats/_const/%Y/%d', time), function(data){ $(data).dialog({ - title: df('%B %Y', this.x) + title: df('%B %Y', time) }); }); }; -- cgit v1.2.3