fix: re-introducing indeterminate checkbox state to ACP privs

v1.18.x
Julian Lam 6 years ago
parent c6ad8fae2a
commit e8f3c25676

@ -29,7 +29,7 @@
"select-category": "Select Category",
"set-parent-category": "Set Parent Category",
"privileges.description": "You can configure the access control privileges for this category in this section. Privileges can be granted on a per-user or a per-group basis. Select the domain of effect from the dropdown below.",
"privileges.description": "You can configure the access control privileges for portions of the site in this section. Privileges can be granted on a per-user or a per-group basis. Select the domain of effect from the dropdown below.",
"privileges.category-selector": "Configuring privileges for ",
"privileges.warning": "<strong>Note</strong>: Privilege settings take effect immediately. It is not necessary to save the category after adjusting these settings.",
"privileges.section-viewing": "Viewing Privileges",

@ -328,6 +328,22 @@ input[type="checkbox"],
.transition(240ms);
}
&:indeterminate:before {
content: "";
position: absolute;
top: 6px;
left: 6px;
display: table;
width: 6px;
height: 12px;
border-top: 2px solid #fff;
}
&:indeterminate:after {
background-color: @brand-primary;
border-color: @brand-primary;
}
&:checked:before {
content: "";
position: absolute;

@ -85,7 +85,7 @@ define('admin/manage/privileges', [
}
});
for (var x = 0, numPrivs = privs.length; x < numPrivs; x += 1) {
var inputs = $('.privilege-table tr[data-group-name]:not([data-group-name="registered-users"],[data-group-name="guests"]) td[data-privilege="' + privs[x] + '"] input');
var inputs = $('.privilege-table tr[data-group-name]:not([data-group-name="registered-users"],[data-group-name="guests"],[data-group-name="spiders"]) td[data-privilege="' + privs[x] + '"] input');
inputs.each(function (idx, el) {
if (!el.checked) {
el.indeterminate = true;

Loading…
Cancel
Save