aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-20 19:11:46 -0800
committerfriendica <info@friendica.com>2011-12-20 19:11:46 -0800
commit2e088aad8daaceae83f9b824df9e9ae9791cc825 (patch)
treeae64dd370a7382e681cfa964288a971922e7e08c /js
parent7fbfbdae0700e68a465f70963521b9043fe5de30 (diff)
downloadvolse-hubzilla-2e088aad8daaceae83f9b824df9e9ae9791cc825.tar.gz
volse-hubzilla-2e088aad8daaceae83f9b824df9e9ae9791cc825.tar.bz2
volse-hubzilla-2e088aad8daaceae83f9b824df9e9ae9791cc825.zip
bug #246
Diffstat (limited to 'js')
-rw-r--r--js/acl.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/js/acl.js b/js/acl.js
index 12045fe52..bd9f71082 100644
--- 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;
}
});