summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-06-07 15:35:49 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-06-07 15:35:49 (GMT)
commit5e8c752980b9a654dccdb1d6cc65e96b3d08cf13 (patch)
tree7a261532f1e7dd6b6977b928a9e5a7ecbf137d3b
parentccdbc85dfcaff9724f92ecc16b9cbb9489786c5f (diff)
init calendar
-rw-r--r--site_media/programcalendar.js8
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('/');
+ }
+ });
+});