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 ++++--- static/js/kosten.ls | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) 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) }); }); }; diff --git a/static/js/kosten.ls b/static/js/kosten.ls index 26bd3b6..52996d6 100644 --- a/static/js/kosten.ls +++ b/static/js/kosten.ls @@ -78,10 +78,11 @@ export statJS = jq !-> const-dialog = !-> df = Highcharts.date-format + time = @x - data <-! $.get df '/stats/_const/%Y/%d' @x + data <-! $.get df '/stats/_const/%Y/%d' time $ data .dialog do - title: df '%B %Y' @x + title: df '%B %Y' time <-! $ \.stats .each -- cgit v1.2.3