Mercurial > public > sg101
view media/js/forums_mod.js @ 211:3a626c48e9ae
Fix #81: could not get paragraphs in Markdown due to the interaction between smiley and Markdown. Refactored the smilify code to use a series of regular expressions over the text when working with markdown.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 08 May 2010 23:44:59 +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; } }); });