]> git.mxchange.org Git - friendica.git/commitdiff
better handling of the display of conflicting group permissions
authorfriendica <info@friendica.com>
Thu, 22 Dec 2011 02:04:24 +0000 (18:04 -0800)
committerfriendica <info@friendica.com>
Thu, 22 Dec 2011 02:04:24 +0000 (18:04 -0800)
js/acl.js

index bd9f71082efac56e357df87906392b1378b4cd74..e383224ca8aba067bd952b59e0f04e089b67a314 100644 (file)
--- 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;