summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-03-14 18:59:16 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-03-14 18:59:16 (GMT)
commit9ec8672d21ed3305aabb183908c762c169cd94a7 (patch)
treeafb877151b1143d1858444d689d6f95a1bcf7122
parentcdc10ff51a82d689d741c4ea4b8580de8bf86bdb (diff)
fixed date format for datepicker
-rw-r--r--program/templates/day_schedule.html5
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('/');
}
});
});