Mercurial > public > sg101
comparison forums/static/js/forums_mod.js @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/forums/static/js/forums_mod.js@88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 $(document).ready(function() { | |
2 var master = $('#forums-master-topic'); | |
3 var topics = $('.forums-topic_check'); | |
4 master.click(function() { | |
5 var state = this.checked; | |
6 topics.each(function() { | |
7 this.checked = state; | |
8 }); | |
9 }); | |
10 topics.click(function() { | |
11 if (master[0].checked && !this.checked) { | |
12 master[0].checked = false; | |
13 } | |
14 }); | |
15 }); |