Node.js based forum software built for the modern web
fix: re-introducing indeterminate checkbox state to ACP privs
Julian Lame8f3c25676a9
diff --git a/public/language/en-GB/admin/manage/categories.json b/public/language/en-GB/admin/manage/categories.jsonindex 85aeeb8069..60524dd329 100644--- a/public/language/en-GB/admin/manage/categories.json+++ b/public/language/en-GB/admin/manage/categories.json@@ -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",diff --git a/public/less/admin/paper/bootswatch.less b/public/less/admin/paper/bootswatch.lessindex cceb643cf6..36957a3092 100644--- a/public/less/admin/paper/bootswatch.less+++ b/public/less/admin/paper/bootswatch.less@@ -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;diff --git a/public/src/admin/manage/privileges.js b/public/src/admin/manage/privileges.jsindex ef575e9fbd..f43ebef04f 100644--- a/public/src/admin/manage/privileges.js+++ b/public/src/admin/manage/privileges.js@@ -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;