Mercurial > public > sg101
annotate media/js/forums_mod.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 | d1b0b86441c0 |
children |
rev | line source |
---|---|
bgneal@112 | 1 $(document).ready(function() { |
bgneal@112 | 2 var master = $('#forums-master-topic'); |
bgneal@112 | 3 var topics = $('.forums-topic_check'); |
bgneal@112 | 4 master.click(function() { |
bgneal@112 | 5 var state = this.checked; |
bgneal@112 | 6 topics.each(function() { |
bgneal@112 | 7 this.checked = state; |
bgneal@112 | 8 }); |
bgneal@112 | 9 }); |
bgneal@112 | 10 topics.click(function() { |
bgneal@112 | 11 if (master[0].checked && !this.checked) { |
bgneal@112 | 12 master[0].checked = false; |
bgneal@112 | 13 } |
bgneal@112 | 14 }); |
bgneal@112 | 15 }); |