diff options
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 |