Mercurial > public > sg101
view media/js/forums_mod.js @ 199:217119c87a06
Fix #72: update to 1.1.7 of the MarkItUp! editor.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 11 Apr 2010 18:56:30 +0000 |
parents | d1b0b86441c0 |
children |
line wrap: on
line source
$(document).ready(function() { var master = $('#forums-master-topic'); var topics = $('.forums-topic_check'); master.click(function() { var state = this.checked; topics.each(function() { this.checked = state; }); }); topics.click(function() { if (master[0].checked && !this.checked) { master[0].checked = false; } }); });