Mercurial > public > sg101
view gcalendar/static/js/gcalendar.js @ 1192:980123d47763
Fix link to queues fork.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Mar 2022 15:53:41 -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(); }); });