mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
fix: re-introducing indeterminate checkbox state to ACP privs
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
"select-category": "Select Category",
|
"select-category": "Select Category",
|
||||||
"set-parent-category": "Set Parent 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.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.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",
|
"privileges.section-viewing": "Viewing Privileges",
|
||||||
|
|||||||
@@ -328,6 +328,22 @@ input[type="checkbox"],
|
|||||||
.transition(240ms);
|
.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 {
|
&:checked:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ define('admin/manage/privileges', [
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
for (var x = 0, numPrivs = privs.length; x < numPrivs; x += 1) {
|
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) {
|
inputs.each(function (idx, el) {
|
||||||
if (!el.checked) {
|
if (!el.checked) {
|
||||||
el.indeterminate = true;
|
el.indeterminate = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user