]> git.mxchange.org Git - friendica.git/blob - view/templates/settings/head.tpl
Merge branch '2021.03-rc' into copyright-2021
[friendica.git] / view / templates / settings / head.tpl
1
2
3 <script>
4         var ispublic = "{{$ispublic nofilter}}";
5
6
7         $(document).ready(function() {
8
9                 $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
10                         var selstr;
11                         $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
12                                 selstr = $(this).html();
13                                 $('#jot-perms-icon').removeClass('unlock').addClass('lock');
14                                 $('#jot-public').hide();
15                         });
16                         if(selstr == null) { 
17                                 $('#jot-perms-icon').removeClass('lock').addClass('unlock');
18                                 $('#jot-public').show();
19                         }
20
21                 }).trigger('change');
22                 
23                 $('.settings-content-block').hide();
24                 $('.settings-heading').click(function(){
25                         $('.settings-content-block').hide();
26                         $(this).next('.settings-content-block').toggle();
27                 });
28
29         });
30
31 </script>
32