summaryrefslogtreecommitdiff
path: root/pv/site_media/programcalendar.js
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-02-28 16:52:15 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-02-28 16:52:15 (GMT)
commitff12c7bebb0eca7495951b25d29949662bf32f9f (patch)
treef96d6398805bd59e70bc43278bf2f71139f8d789 /pv/site_media/programcalendar.js
parent30f04220ebceb54279ad81c39c4c4cfffc5d96a4 (diff)
re-structured projects
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('/');
+ }
+ });
+});