From e764990ce49880ba6d5113410eab86ff44bb6647 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 21 Dec 2011 18:04:24 -0800 Subject: [PATCH] better handling of the display of conflicting group permissions --- js/acl.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/acl.js b/js/acl.js index bd9f71082e..e383224ca8 100644 --- a/js/acl.js +++ b/js/acl.js @@ -200,8 +200,14 @@ ACL.prototype.update_view = function(){ $(that.group_uids[id]).each(function(i,v) { if(uclass == "grouphide") $("#c"+v).removeClass("groupshow"); - if(uclass != "") - $("#c"+v).addClass(uclass); + if(uclass != "") { + var cls = $("#c"+v).attr('class'); + if( cls == undefined) + return true; + var hiding = cls.indexOf('grouphide'); + if(hiding == -1) + $("#c"+v).addClass(uclass); + } }); break;