Mercurial > public > sg101
annotate media/js/gcalendar.js @ 197:2baadae33f2e
Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 04:32:24 +0000 |
parents | 4e1abeb593c2 |
children | 7e3ed3eb9b99 |
rev | line source |
---|---|
gremmie@1 | 1 $(document).ready(function() { |
gremmie@1 | 2 $('#id_start_date').datepicker({constrainInput: true, |
bgneal@184 | 3 dateFormat: 'yy-mm-dd', |
gremmie@1 | 4 onClose: function () { |
gremmie@1 | 5 var end = $('#id_end_date'); |
gremmie@1 | 6 if (this.value > end.val()) |
gremmie@1 | 7 { |
gremmie@1 | 8 end.val(this.value); |
gremmie@1 | 9 } |
gremmie@1 | 10 } |
gremmie@1 | 11 }); |
gremmie@1 | 12 $('#id_end_date').datepicker({constrainInput: true, |
bgneal@184 | 13 dateFormat: 'yy-mm-dd', |
gremmie@1 | 14 onClose: function () { |
gremmie@1 | 15 var start = $('#id_start_date'); |
gremmie@1 | 16 if (this.value < start.val()) |
gremmie@1 | 17 { |
gremmie@1 | 18 start.val(this.value); |
gremmie@1 | 19 } |
gremmie@1 | 20 } |
gremmie@1 | 21 }); |
gremmie@1 | 22 if ($('#id_all_day:checked').length) |
gremmie@1 | 23 { |
gremmie@1 | 24 $('#id_start_time').hide(); |
gremmie@1 | 25 $('#id_end_time').hide(); |
gremmie@1 | 26 $('#id_tz_stuff').hide(); |
gremmie@1 | 27 } |
gremmie@1 | 28 $('#id_all_day').click(function () { |
gremmie@1 | 29 $('#id_start_time').toggle(); |
gremmie@1 | 30 $('#id_end_time').toggle(); |
gremmie@1 | 31 $('#id_tz_stuff').toggle(); |
gremmie@1 | 32 }); |
gremmie@1 | 33 }); |