]> git.mxchange.org Git - friendica.git/commitdiff
bug #246
authorfriendica <info@friendica.com>
Wed, 21 Dec 2011 03:11:46 +0000 (19:11 -0800)
committerfriendica <info@friendica.com>
Wed, 21 Dec 2011 03:11:46 +0000 (19:11 -0800)
js/acl.js

index 12045fe521fedb3036a98f447ea54840621cb3a3..bd9f71082efac56e357df87906392b1378b4cd74 100644 (file)
--- a/js/acl.js
+++ b/js/acl.js
@@ -171,6 +171,9 @@ ACL.prototype.update_view = function(){
                                $('.profile-jot-net input').attr('disabled', 'disabled');                       
                                $('#profile-jot-desc').html('&nbsp;');
        }
+       $("#acl-list-content .acl-list-item").each(function(){
+               $(this).removeClass("groupshow grouphide");
+       });
        
        $("#acl-list-content .acl-list-item").each(function(){
                itemid = $(this).attr('id');
@@ -193,10 +196,12 @@ ACL.prototype.update_view = function(){
                                        bthide.addClass("selected");
                                        uclass="grouphide";
                                }
-
-
-                               $(that.group_uids[id]).each(function(i,v){
-                                       $("#c"+v).removeClass("groupshow grouphide").addClass(uclass);
+                               
+                               $(that.group_uids[id]).each(function(i,v) {
+                                       if(uclass == "grouphide")
+                                               $("#c"+v).removeClass("groupshow");
+                                       if(uclass != "")
+                                               $("#c"+v).addClass(uclass);
                                });
                                
                                break;
@@ -209,8 +214,6 @@ ACL.prototype.update_view = function(){
                                        btshow.removeClass("selected");
                                        bthide.addClass("selected");
                                }                       
-                       default:
-                               break;
                }
                
        });