summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hofmaier2018-03-27 17:54:17 +0200
committerChristian Hofmaier2018-03-27 17:54:17 +0200
commita19849e95ef4f43ac3e6709f593838fed55fb40d (patch)
tree4a2fc6e1864749346d919bef348c5e0222de3aab
parentdefault.css: Make disabled tabs unclickable (diff)
downloadslx-admin-permission-manager.tar.gz
slx-admin-permission-manager.tar.xz
slx-admin-permission-manager.zip
[permissionmanager] fixed tree issue with deselecting parent-permissions (Ticket: #3327)permission-manager
-rw-r--r--modules-available/permissionmanager/templates/roleeditor.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules-available/permissionmanager/templates/roleeditor.html b/modules-available/permissionmanager/templates/roleeditor.html
index 8524427b..38493d5d 100644
--- a/modules-available/permissionmanager/templates/roleeditor.html
+++ b/modules-available/permissionmanager/templates/roleeditor.html
@@ -57,6 +57,15 @@
var $this = $(this);
var checked = $this.prop("checked");
$this.closest('li').find("input[type=checkbox]").prop("checked", checked);
+
+ if (!checked) {
+ var parent = $(this).parent().parent();
+ while (!parent.hasClass("tree-panel")) {
+ parent = parent.parent().parent();
+ if (parent.hasClass("tree-container")) parent = parent.parent().parent();
+ parent.find("input[type=checkbox]:first").prop("checked", false);
+ }
+ }
});
$("input.master-checkbox").change(function () {
// (Un)Mark everything within the panel when the master checkbox on top is clicked