]> git.mxchange.org Git - friendica.git/blob - view/templates/photos_head.tpl
Merge pull request #9543 from MrPetovan/bug/notices
[friendica.git] / view / templates / photos_head.tpl
1
2
3 <script>
4
5         var ispublic = "{{$ispublic nofilter}}";
6
7
8         $(document).ready(function() {
9
10                 $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
11                         var selstr;
12                         $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
13                                 selstr = $(this).html();
14                                 $('#jot-perms-icon').removeClass('unlock').addClass('lock');
15                                 $('#jot-public').hide();
16                         });
17                         if(selstr == null) { 
18                                 $('#jot-perms-icon').removeClass('lock').addClass('unlock');
19                                 $('#jot-public').show();
20                         }
21
22                 }).trigger('change');
23
24         });
25
26 </script>
27