From 881037a0d9430b13e852ccac46590945a5093957 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 18 Sep 2010 01:52:44 -0700 Subject: [PATCH] show lock state changes as recipients and groups are added/removed --- view/jot-header.tpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/view/jot-header.tpl b/view/jot-header.tpl index bb95cd265f..b07ffb1f60 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -59,6 +59,17 @@ tinyMCE.init({ } } ); + $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { + var selstr; + $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { + selstr = $(this).text(); + $('#profile-jot-perms img').attr('src', 'images/lock_icon.gif'); + + }); + if(selstr == null) + $('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif'); + + }).trigger('change'); });