summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager/clientscript.js
diff options
context:
space:
mode:
authorUdo Walter2017-05-15 16:50:28 +0200
committerUdo Walter2017-05-15 16:50:28 +0200
commita29c52a1ceff7e7fe0d93693ed7068fd14703eb4 (patch)
tree747aac10fcfbe5089c4cc16553481414c5f74cd5 /modules-available/permissionmanager/clientscript.js
parent[statistics_reporting] implemented usecase of permissionmanager in statistics... (diff)
downloadslx-admin-a29c52a1ceff7e7fe0d93693ed7068fd14703eb4.tar.gz
slx-admin-a29c52a1ceff7e7fe0d93693ed7068fd14703eb4.tar.xz
slx-admin-a29c52a1ceff7e7fe0d93693ed7068fd14703eb4.zip
[js_stupidtable] changed one-line code to formatted code;
modified to show sorting arrows on columns and different mouse cursor on hover
Diffstat (limited to 'modules-available/permissionmanager/clientscript.js')
-rw-r--r--modules-available/permissionmanager/clientscript.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/modules-available/permissionmanager/clientscript.js b/modules-available/permissionmanager/clientscript.js
index 927d2afa..1881c70d 100644
--- a/modules-available/permissionmanager/clientscript.js
+++ b/modules-available/permissionmanager/clientscript.js
@@ -1,17 +1,4 @@
document.addEventListener("DOMContentLoaded", function() {
- var table = $("table");
- if (table.length) {
- table = table.stupidtable();
- // to show the sort-arrow next to the table header
- table.on("aftertablesort", function (event, data) {
- var th = $(this).find("th");
- th.find(".arrow").remove();
- var dir = $.fn.stupidtable.dir;
- var arrow = data.direction === dir.ASC ? "down" : "up";
- th.eq(data.column).append(' <span class="arrow glyphicon glyphicon-chevron-'+arrow+'"></span>');
- });
- }
-
var selectize = $('#select-role');
if (selectize.length) {
selectize = selectize.selectize({