view gcalendar/static/js/gcalendar.js @ 1183:d6faffbb6025

Add 2020 MP3 Comp links Also removed twitter links.
author Brian Neal <bgneal@gmail.com>
date Mon, 15 Feb 2021 12:39:26 -0600
parents 3f0a7e918c05
children
line wrap: on
line source
$(document).ready(function() {
    $('#id_start_date').datepicker({constrainInput: true, 
       dateFormat: 'mm/dd/yy',
       onClose: function () {
         var end = $('#id_end_date');
         if (this.value > end.val())
         {
            end.val(this.value);
         }
       }
       });
    $('#id_end_date').datepicker({constrainInput: true,
       dateFormat: 'mm/dd/yy',
       onClose: function () {
         var start = $('#id_start_date');
         if (this.value < start.val())
         {
            start.val(this.value);
         }
       }
       });
    if ($('#id_all_day:checked').length) {
       $('.all-day-hide').hide();
    }
    $('#id_all_day').click(function () {
       $('.all-day-hide').toggle();
    });
});