aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-18 01:52:44 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-18 01:52:44 -0700
commit881037a0d9430b13e852ccac46590945a5093957 (patch)
treee4b47e0e2122b74fad823357b45b5719c3fd9d7b /view
parent2bae548b356b4f9f6cbda88bc8a86df1db404660 (diff)
downloadvolse-hubzilla-881037a0d9430b13e852ccac46590945a5093957.tar.gz
volse-hubzilla-881037a0d9430b13e852ccac46590945a5093957.tar.bz2
volse-hubzilla-881037a0d9430b13e852ccac46590945a5093957.zip
show lock state changes as recipients and groups are added/removed
Diffstat (limited to 'view')
-rw-r--r--view/jot-header.tpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index bb95cd265..b07ffb1f6 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');
});