aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-20 23:07:39 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-20 23:07:39 +0100
commit1ddb43b0d32ab0dadb3fabc1ed79c96c4365eb77 (patch)
tree2683d4a517f75542ef84760cffef2cc5249efb3f /view
parent9fcd470acacf3dc283c91c52f591f5aaa3983ba4 (diff)
downloadvolse-hubzilla-1ddb43b0d32ab0dadb3fabc1ed79c96c4365eb77.tar.gz
volse-hubzilla-1ddb43b0d32ab0dadb3fabc1ed79c96c4365eb77.tar.bz2
volse-hubzilla-1ddb43b0d32ab0dadb3fabc1ed79c96c4365eb77.zip
an attempt to visualize the supremacy of dont show over show in the acl selector
Diffstat (limited to 'view')
-rw-r--r--view/js/acl.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/view/js/acl.js b/view/js/acl.js
index 70440b572..65f1009ed 100644
--- a/view/js/acl.js
+++ b/view/js/acl.js
@@ -121,8 +121,10 @@ ACL.prototype.on_button_show = function(event) {
event.stopImmediatePropagation();
event.stopPropagation();
- that.set_allow($(this).parent().attr('id'));
- that.on_submit();
+ if(!$(this).parent().hasClass("grouphide")) {
+ that.set_allow($(this).parent().attr('id'));
+ that.on_submit();
+ }
return false;
};
@@ -245,12 +247,15 @@ ACL.prototype.update_view = function() {
break;
case "c":
if (that.allow_cid.indexOf(id)>=0){
- btshow.removeClass("btn-default").addClass("btn-success");
- bthide.removeClass("btn-danger").addClass("btn-default");
+ if(!$(this).hasClass("grouphide") ) {
+ btshow.removeClass("btn-default").addClass("btn-success");
+ bthide.removeClass("btn-danger").addClass("btn-default");
+ }
}
if (that.deny_cid.indexOf(id)>=0){
btshow.removeClass("btn-success").addClass("btn-default");
bthide.removeClass("btn-default").addClass("btn-danger");
+ $(this).removeClass("groupshow");
}
}
});