view messages/static/js/messages.js @ 980:3ebde23a59d0

Pass timeout to requests instead of global timeout. Global timeout didn't seem to work once we started using requests.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Oct 2015 18:35:56 -0500
parents cf486a8e8b43
children
line wrap: on
line source
function tabMasterCheckClick(box, name) {
   var state = $(box).prop('checked');
   $('input[name="' + name + '"]').each(function() {
      this.checked = state;
   });
}

function bulkMsgAction(action) {
   var total = $('input[name="pm_ids"]:checked').length;
   if (total <= 0) {
      alert('Please check some messages first.');
      return false;
   }
   return confirm("Really " + action + " checked messages?");
   return false;
}