diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-03-14 18:59:16 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-03-14 18:59:16 (GMT) |
commit | 9ec8672d21ed3305aabb183908c762c169cd94a7 (patch) | |
tree | afb877151b1143d1858444d689d6f95a1bcf7122 /program/templates | |
parent | cdc10ff51a82d689d741c4ea4b8580de8bf86bdb (diff) |
fixed date format for datepicker
Diffstat (limited to 'program/templates')
-rw-r--r-- | program/templates/day_schedule.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/templates/day_schedule.html b/program/templates/day_schedule.html index cef60ba..f8d517c 100644 --- a/program/templates/day_schedule.html +++ b/program/templates/day_schedule.html @@ -9,9 +9,10 @@ <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#calendar").datepicker({ - defaultDate: location.href.split('/').slice(4, 7).reverse().join('.'), + dateFormat: "yy.mm.dd", + defaultDate: location.href.split('/').slice(4, 7).join('.'), onSelect: function(dateText, inst) { - location = '/programm/' + dateText.split('.').reverse().join('/'); + location = '/programm/' + dateText.split('.').join('/'); } }); }); |