Mercurial > public > sg101
view gcalendar/static/js/gcalendar.js @ 1201:fe10aea76cbd tip
Add 2023 MP3 compilation links
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 24 Mar 2024 14:50:23 -0500 |
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(); }); });