]> git.mxchange.org Git - friendica.git/blob - view/templates/settings-head.tpl
Merge remote-tracking branch 'upstream/master'
[friendica.git] / view / templates / settings-head.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6
7 <script>
8         var ispublic = "{{$ispublic}}";
9
10
11         $(document).ready(function() {
12
13                 $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
14                         var selstr;
15                         $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
16                                 selstr = $(this).text();
17                                 $('#jot-perms-icon').removeClass('unlock').addClass('lock');
18                                 $('#jot-public').hide();
19                         });
20                         if(selstr == null) { 
21                                 $('#jot-perms-icon').removeClass('lock').addClass('unlock');
22                                 $('#jot-public').show();
23                         }
24
25                 }).trigger('change');
26
27         });
28
29 </script>
30