]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/photos_head.tpl
Merge pull request #13176 from MrPetovan/bug/warnings
[friendica.git] / view / templates / photos_head.tpl
index 88fd067c8ca3e05f11162917734c58e35d549f3e..b633ee76d75a632f2aa8b99bb48dc1ffc9029f98 100644 (file)
@@ -7,14 +7,14 @@
 
        $(document).ready(function() {
 
-               $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
+               $('#contact_allow, #contact_deny, #circle_allow, #circle_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();
+                       $('#contact_allow option:selected, #contact_deny option:selected, #circle_allow option:selected, #circle_deny option:selected').each( function() {
+                               selstr = $(this).html();
                                $('#jot-perms-icon').removeClass('unlock').addClass('lock');
                                $('#jot-public').hide();
                        });
-                       if(selstr == null) { 
+                       if(selstr == null) {
                                $('#jot-perms-icon').removeClass('lock').addClass('unlock');
                                $('#jot-public').show();
                        }