Mercurial > public > sg101
diff messages/static/js/messages.js @ 806:59e36169a814
Private messages refactor: add delete functionality.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 01 Sep 2014 15:53:35 -0500 |
parents | messages/static/js/tabbed_messages.js@796103a2215b |
children | cf486a8e8b43 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messages/static/js/messages.js Mon Sep 01 15:53:35 2014 -0500 @@ -0,0 +1,11 @@ +function tabMasterCheckClick(box, name) { + var state = $(box).prop('checked'); + $('input[name="' + name + '"]').each(function() { + this.checked = state; + }); +} + +function bulkMsgAction(action) { + return confirm("Really " + action + " checked messages?"); + return false; +}