comparison gpp/gcalendar/static/js/gcalendar.js @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents
children
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
1 $(document).ready(function() {
2 $('#id_start_date').datepicker({constrainInput: true,
3 dateFormat: 'mm/dd/yy',
4 onClose: function () {
5 var end = $('#id_end_date');
6 if (this.value > end.val())
7 {
8 end.val(this.value);
9 }
10 }
11 });
12 $('#id_end_date').datepicker({constrainInput: true,
13 dateFormat: 'mm/dd/yy',
14 onClose: function () {
15 var start = $('#id_start_date');
16 if (this.value < start.val())
17 {
18 start.val(this.value);
19 }
20 }
21 });
22 if ($('#id_all_day:checked').length)
23 {
24 $('#id_start_time').hide();
25 $('#id_end_time').hide();
26 $('#id_tz_stuff').hide();
27 }
28 $('#id_all_day').click(function () {
29 $('#id_start_time').toggle();
30 $('#id_end_time').toggle();
31 $('#id_tz_stuff').toggle();
32 });
33 });