aboutsummaryrefslogtreecommitdiffstats
path: root/js/acl.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/acl.js')
-rw-r--r--js/acl.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/acl.js b/js/acl.js
index b270adb6e..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(' ');
}
+ $("#acl-list-content .acl-list-item").each(function(){
+ $(this).removeClass("groupshow grouphide");
+ });
$("#acl-list-content .acl-list-item").each(function(){
itemid = $(this).attr('id');
@@ -194,8 +197,11 @@ ACL.prototype.update_view = function(){
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;