]> git.mxchange.org Git - friendica.git/commitdiff
show lock state changes as recipients and groups are added/removed
authorMike Macgirvin <mike@macgirvin.com>
Sat, 18 Sep 2010 08:52:44 +0000 (01:52 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 18 Sep 2010 08:52:44 +0000 (01:52 -0700)
view/jot-header.tpl

index bb95cd265fe56eae40d356f2c1aa2939ad527057..b07ffb1f60f64a260b743dcd7ae05d4fefdeb1e4 100644 (file)
@@ -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');
 
        });