view forums/static/js/forums_mod.js @ 971:4f265f61874b

Hotlink image form is functioning. The user can now submit a URL via a form and the URL will be downloaded and uploaded to a S3 bucket if it is an image. Tests to follow.
author Brian Neal <bgneal@gmail.com>
date Tue, 22 Sep 2015 20:23:50 -0500
parents ee87ea74d46b
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;
      }
   });
});