From 5e8c752980b9a654dccdb1d6cc65e96b3d08cf13 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 7 Jun 2011 17:35:49 +0200 Subject: init calendar 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('/'); + } + }); +}); -- cgit v0.10.2