diff options
author | Christian Hofmaier | 2018-03-27 17:54:17 +0200 |
---|---|---|
committer | Christian Hofmaier | 2018-03-27 17:54:17 +0200 |
commit | a19849e95ef4f43ac3e6709f593838fed55fb40d (patch) | |
tree | 4a2fc6e1864749346d919bef348c5e0222de3aab | |
parent | default.css: Make disabled tabs unclickable (diff) | |
download | slx-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.html | 9 |
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 |