summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager/clientscript.js
diff options
context:
space:
mode:
authorUdo Walter2017-11-21 17:24:44 +0100
committerUdo Walter2017-11-21 17:24:44 +0100
commit3d88bb5a4223d3fdc9084eee3e75defc8da674b0 (patch)
tree9d15a1ccafa5ec3ee97f991637145e524e70e37c /modules-available/permissionmanager/clientscript.js
parent[dozmod] implemented new permission system to module for: deleting expired vm... (diff)
downloadslx-admin-3d88bb5a4223d3fdc9084eee3e75defc8da674b0.tar.gz
slx-admin-3d88bb5a4223d3fdc9084eee3e75defc8da674b0.tar.xz
slx-admin-3d88bb5a4223d3fdc9084eee3e75defc8da674b0.zip
[permissionmanager] added key relationships to install script;
changed nested php for loops to sql code; standardized sql column naming; small bugfixes;
Diffstat (limited to 'modules-available/permissionmanager/clientscript.js')
-rw-r--r--modules-available/permissionmanager/clientscript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/permissionmanager/clientscript.js b/modules-available/permissionmanager/clientscript.js
index 1881c70d..700ebc11 100644
--- a/modules-available/permissionmanager/clientscript.js
+++ b/modules-available/permissionmanager/clientscript.js
@@ -19,7 +19,7 @@ document.addEventListener("DOMContentLoaded", function() {
$('.dataTable tbody').find('tr').hide();
}
// Find all rows which shall be shown and increase their counter by 1
- $(".roleId-" + value).closest("tr").each(function () {
+ $(".roleid-" + value).closest("tr").each(function () {
$(this).data("selectizeCount", $(this).data("selectizeCount") + 1);
$(this).show();
});
@@ -31,7 +31,7 @@ document.addEventListener("DOMContentLoaded", function() {
$('.dataTable tbody').find('tr').show();
} else {
// Find all rows which have the delete role, decrease their counter by 1
- $(".roleId-" + value).closest("tr").each(function () {
+ $(".roleid-" + value).closest("tr").each(function () {
$(this).data("selectizeCount", $(this).data("selectizeCount") - 1);
// If counter is 0, hide the row (no filter given to show the row anymore)
if ($(this).data("selectizeCount") === 0) {