summaryrefslogtreecommitdiff
path: root/pv/site_media/programcalendar.js
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-02-23 18:02:14 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-02-23 18:02:14 (GMT)
commit4590065b6ca9d7698c22277a4da1505486c8b637 (patch)
tree2a76ad1a0c1cced08fdcf2139f1e12796522b090 /pv/site_media/programcalendar.js
parentc95ec9e6bea9e076bda3ae66c4b604f399f5ec86 (diff)
moved things around.
Diffstat (limited to 'pv/site_media/programcalendar.js')
-rw-r--r--pv/site_media/programcalendar.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/pv/site_media/programcalendar.js b/pv/site_media/programcalendar.js
new file mode 100644
index 0000000..c4d91fc
--- /dev/null
+++ b/pv/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('/');
+ }
+ });
+});