summaryrefslogtreecommitdiff
path: root/helsinki/site_media/programcalendar.js
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-01-31 19:27:41 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2014-01-31 19:27:41 (GMT)
commitc95ec9e6bea9e076bda3ae66c4b604f399f5ec86 (patch)
tree292f2f7bd193a06555c124ca9cc0a383fce0c26c /helsinki/site_media/programcalendar.js
parente6e7d8fc98211dc9094f8e0a9525fddb1252c112 (diff)
getting real.
Diffstat (limited to 'helsinki/site_media/programcalendar.js')
-rw-r--r--helsinki/site_media/programcalendar.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/helsinki/site_media/programcalendar.js b/helsinki/site_media/programcalendar.js
new file mode 100644
index 0000000..c4d91fc
--- /dev/null
+++ b/helsinki/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('/');
+ }
+ });
+});