diff options
author | Udo Walter | 2017-04-25 14:50:37 +0200 |
---|---|---|
committer | Udo Walter | 2017-04-25 14:50:37 +0200 |
commit | 3e4c27599f920e6f630f048f494f5d196fc81b8e (patch) | |
tree | 77c61e2867f26fbbfe928266d433652a3248053e /modules-available/permissionmanager/templates/roleeditor.html | |
parent | Merge branches 'master' and 'permission-manager' of git.openslx.org:openslx-n... (diff) | |
download | slx-admin-3e4c27599f920e6f630f048f494f5d196fc81b8e.tar.gz slx-admin-3e4c27599f920e6f630f048f494f5d196fc81b8e.tar.xz slx-admin-3e4c27599f920e6f630f048f494f5d196fc81b8e.zip |
[permissionmanager] added possibility to get a list of allowed locations for a given permission + bugfixes
Diffstat (limited to 'modules-available/permissionmanager/templates/roleeditor.html')
-rw-r--r-- | modules-available/permissionmanager/templates/roleeditor.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules-available/permissionmanager/templates/roleeditor.html b/modules-available/permissionmanager/templates/roleeditor.html index bfabf4af..d1535332 100644 --- a/modules-available/permissionmanager/templates/roleeditor.html +++ b/modules-available/permissionmanager/templates/roleeditor.html @@ -63,9 +63,9 @@ allLocations.on('switchChange.bootstrapSwitch', function(event, state) { if (state) { - $("#selectize-container").addClass("disabled"); + $("#selectize-container").addClass("faded unclickable"); } else { - $("#selectize-container").removeClass("disabled"); + $("#selectize-container").removeClass("faded unclickable"); } }); @@ -78,9 +78,9 @@ allPermissions.on('switchChange.bootstrapSwitch', function(event, state) { if (state) { - $(".permissions-container").addClass("disabled"); + $(".permissions-container").addClass("faded unclickable"); } else { - $(".permissions-container").removeClass("disabled"); + $(".permissions-container").removeClass("faded unclickable"); } }); @@ -102,16 +102,16 @@ var parent = $(this).parent().parent(); if (parent.hasClass("panel-heading")) parent = parent.parent(); parent = parent.find("ul:first"); - parent.find("ul").removeClass("disabled"); + parent.find("ul").removeClass("faded"); var checkboxes = parent.find("input[type=checkbox]"); - if (parent.hasClass("disabled")) { + if (parent.hasClass("faded")) { checkboxes.prop("disabled", false); checkboxes.prop("checked", false); - parent.removeClass("disabled"); + parent.removeClass("faded"); } else { checkboxes.prop("disabled", true); checkboxes.prop("checked", true); - parent.addClass("disabled"); + parent.addClass("faded"); } }); |