Mercurial > public > sg101
annotate messages/static/js/messages.js @ 818:cf486a8e8b43
Added the ability to export private messages to email.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 13 Sep 2014 16:19:46 -0500 |
parents | 59e36169a814 |
children |
rev | line source |
---|---|
bgneal@425 | 1 function tabMasterCheckClick(box, name) { |
bgneal@731 | 2 var state = $(box).prop('checked'); |
bgneal@425 | 3 $('input[name="' + name + '"]').each(function() { |
bgneal@425 | 4 this.checked = state; |
bgneal@425 | 5 }); |
bgneal@425 | 6 } |
bgneal@425 | 7 |
bgneal@806 | 8 function bulkMsgAction(action) { |
bgneal@818 | 9 var total = $('input[name="pm_ids"]:checked').length; |
bgneal@818 | 10 if (total <= 0) { |
bgneal@818 | 11 alert('Please check some messages first.'); |
bgneal@818 | 12 return false; |
bgneal@818 | 13 } |
bgneal@806 | 14 return confirm("Really " + action + " checked messages?"); |
bgneal@425 | 15 return false; |
bgneal@425 | 16 } |