view media/js/forums_mod.js @ 305:d502a997360e

Fixing #110; Removed the prompts for alt text & titles from img and link buttons in the markitup editor. This was confusing users.
author Brian Neal <bgneal@gmail.com>
date Sat, 15 Jan 2011 21:29:00 +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;
      }
   });
});