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