diff options
author | Johannes Raggam <raggam-nl@adm.at> | 2011-06-07 15:35:49 (GMT) |
---|---|---|
committer | Johannes Raggam <raggam-nl@adm.at> | 2011-06-07 15:35:49 (GMT) |
commit | 5e8c752980b9a654dccdb1d6cc65e96b3d08cf13 (patch) | |
tree | 7a261532f1e7dd6b6977b928a9e5a7ecbf137d3b | |
parent | ccdbc85dfcaff9724f92ecc16b9cbb9489786c5f (diff) |
init calendar
-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('/'); + } + }); +}); |