summaryrefslogtreecommitdiff
path: root/helsinki/site_media/programcalendar.js
blob: c4d91fcdd928e6e1150b45fc1e5f0ff2ba1d1023 (plain)
1
2
3
4
5
6
7
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('/');
        }
    });
});