an attempt to visualize the supremacy of dont show over show in the acl selector
This commit is contained in:
parent
9fcd470aca
commit
1ddb43b0d3
@ -121,8 +121,10 @@ ACL.prototype.on_button_show = function(event) {
|
|||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
|
if(!$(this).parent().hasClass("grouphide")) {
|
||||||
that.set_allow($(this).parent().attr('id'));
|
that.set_allow($(this).parent().attr('id'));
|
||||||
that.on_submit();
|
that.on_submit();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
@ -245,12 +247,15 @@ ACL.prototype.update_view = function() {
|
|||||||
break;
|
break;
|
||||||
case "c":
|
case "c":
|
||||||
if (that.allow_cid.indexOf(id)>=0){
|
if (that.allow_cid.indexOf(id)>=0){
|
||||||
|
if(!$(this).hasClass("grouphide") ) {
|
||||||
btshow.removeClass("btn-default").addClass("btn-success");
|
btshow.removeClass("btn-default").addClass("btn-success");
|
||||||
bthide.removeClass("btn-danger").addClass("btn-default");
|
bthide.removeClass("btn-danger").addClass("btn-default");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (that.deny_cid.indexOf(id)>=0){
|
if (that.deny_cid.indexOf(id)>=0){
|
||||||
btshow.removeClass("btn-success").addClass("btn-default");
|
btshow.removeClass("btn-success").addClass("btn-default");
|
||||||
bthide.removeClass("btn-default").addClass("btn-danger");
|
bthide.removeClass("btn-default").addClass("btn-danger");
|
||||||
|
$(this).removeClass("groupshow");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user