comparison media/js/gcalendar.js @ 184:4e1abeb593c2

Updating jQuery and jQuery UI. This is for ticket #57. Noticed GCalendar wasn't opening the datepicker on the correct date until I set a dateFormat option. Fixed member map to undisable the update button if you type in a location that can't be geocoded.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 22:19:08 +0000
parents 5b69d6e01fd4
children 7e3ed3eb9b99
comparison
equal deleted inserted replaced
183:149c3567fec1 184:4e1abeb593c2
1 $(document).ready(function() { 1 $(document).ready(function() {
2 $('#id_start_date').datepicker({constrainInput: true, 2 $('#id_start_date').datepicker({constrainInput: true,
3 dateFormat: 'yy-mm-dd',
3 onClose: function () { 4 onClose: function () {
4 var end = $('#id_end_date'); 5 var end = $('#id_end_date');
5 if (this.value > end.val()) 6 if (this.value > end.val())
6 { 7 {
7 end.val(this.value); 8 end.val(this.value);
8 } 9 }
9 } 10 }
10 }); 11 });
11 $('#id_end_date').datepicker({constrainInput: true, 12 $('#id_end_date').datepicker({constrainInput: true,
13 dateFormat: 'yy-mm-dd',
12 onClose: function () { 14 onClose: function () {
13 var start = $('#id_start_date'); 15 var start = $('#id_start_date');
14 if (this.value < start.val()) 16 if (this.value < start.val())
15 { 17 {
16 start.val(this.value); 18 start.val(this.value);