comparison gpp/forums/static/js/forums_mod.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 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 });