diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-06-07 18:55:35 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-06-07 18:55:35 (GMT) |
commit | 4d4b54e842c9651763a497e1fb26c672403e78e5 (patch) | |
tree | 61cca148195f76de63fb1880437ac1ee7ace8c2f /site_media | |
parent | af0e543acb81dd8eb4cf68d35c70128fef389251 (diff) | |
parent | ede9fa059b6cbc82c7fd64c2f8009c9a250bc971 (diff) |
Merge branch 'master' of github.com:nnrcschmdt/helsinki
Diffstat (limited to 'site_media')
-rw-r--r-- | site_media/programcalendar.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/site_media/programcalendar.js b/site_media/programcalendar.js new file mode 100644 index 0000000..c4d91fc --- /dev/null +++ b/site_media/programcalendar.js @@ -0,0 +1,8 @@ +jQuery(document).ready(function() { + jQuery("#calendar").datepicker({ + defaultDate: location.href.split('/').slice(4, 7).reverse().join('.'), + onSelect: function(dateText, inst) { + location = '/programm/' + dateText.split('.').reverse().join('/'); + } + }); +}); |