view messages/static/js/messages.js @ 1054:5b8062cce722

Top-bar search is working. A few small visual tweaks.
author Brian Neal <bgneal@gmail.com>
date Mon, 07 Mar 2016 19:55:26 -0600
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;
}