diff options
author | friendica <info@friendica.com> | 2011-12-21 18:04:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-21 18:04:24 -0800 |
commit | e764990ce49880ba6d5113410eab86ff44bb6647 (patch) | |
tree | 972909d2fc20419b5ba287980a3156ff5220fa6f /js | |
parent | dacbbfaafbaec739199771062ceb55ecb8246999 (diff) | |
download | volse-hubzilla-e764990ce49880ba6d5113410eab86ff44bb6647.tar.gz volse-hubzilla-e764990ce49880ba6d5113410eab86ff44bb6647.tar.bz2 volse-hubzilla-e764990ce49880ba6d5113410eab86ff44bb6647.zip |
better handling of the display of conflicting group permissions
Diffstat (limited to 'js')
-rw-r--r-- | js/acl.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; |