diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2014-09-09 13:29:13 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2014-09-09 13:29:13 +0200 |
commit | c941c29b7a212dbe17801649a2fdaac6b065799a (patch) | |
tree | e4b730013f0830348c1a380f325ea249132165e5 /static/js | |
parent | 177f9d3878b16862aa30abcc9db75db9bc29b8d4 (diff) | |
download | kosten-c941c29b7a212dbe17801649a2fdaac6b065799a.tar.gz kosten-c941c29b7a212dbe17801649a2fdaac6b065799a.tar.bz2 kosten-c941c29b7a212dbe17801649a2fdaac6b065799a.zip |
Fix Javascript
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/kosten.js | 7 | ||||
-rw-r--r-- | 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 |