summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager
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
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')
-rw-r--r--modules-available/permissionmanager/clientscript.js13
-rw-r--r--modules-available/permissionmanager/templates/locationstable.html2
-rw-r--r--modules-available/permissionmanager/templates/rolestable.html2
-rw-r--r--modules-available/permissionmanager/templates/userstable.html6
4 files changed, 5 insertions, 18 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({
diff --git a/modules-available/permissionmanager/templates/locationstable.html b/modules-available/permissionmanager/templates/locationstable.html
index ea3a92e8..79b0a076 100644
--- a/modules-available/permissionmanager/templates/locationstable.html
+++ b/modules-available/permissionmanager/templates/locationstable.html
@@ -12,7 +12,7 @@
<div class="row">
<div class="col-md-12">
- <table id="locationsTable" class="table table-condensed table-hover dataTable">
+ <table id="locationsTable" class="table table-condensed table-hover stupidtable dataTable">
<thead>
<tr>
<th data-sort="string">{{lang_Locations}}</th>
diff --git a/modules-available/permissionmanager/templates/rolestable.html b/modules-available/permissionmanager/templates/rolestable.html
index a455d346..a3e31e15 100644
--- a/modules-available/permissionmanager/templates/rolestable.html
+++ b/modules-available/permissionmanager/templates/rolestable.html
@@ -12,7 +12,7 @@
<div class="row">
<div class="col-md-12">
- <table id="rolesTable" class="table table-condensed table-hover">
+ <table id="rolesTable" class="table table-condensed table-hover stupidtable">
<thead>
<tr>
<th data-sort="string">{{lang_Roles}}</th>
diff --git a/modules-available/permissionmanager/templates/userstable.html b/modules-available/permissionmanager/templates/userstable.html
index a740c5e8..e794608c 100644
--- a/modules-available/permissionmanager/templates/userstable.html
+++ b/modules-available/permissionmanager/templates/userstable.html
@@ -18,7 +18,7 @@
<div class="row">
<div class="col-md-12">
- <table id="usersTable" class="table table-condensed table-hover dataTable">
+ <table id="usersTable" class="table table-condensed table-hover stupidtable dataTable">
<thead>
<tr>
<th data-sort="string">{{lang_Users}}</th>
@@ -60,7 +60,7 @@
<div class="modal-body">
<div class="row">
<div class="col-md-12 scrollingTable">
- <table id="addRoleToUserTable" class="table table-condensed table-hover">
+ <table id="addRoleToUserTable" class="table table-condensed table-hover stupidtable">
<thead>
<tr>
<th data-sort="string">{{lang_Roles}}</th>
@@ -103,7 +103,7 @@
<div class="modal-body">
<div class="row">
<div class="col-md-12 scrollingTable">
- <table id="removeRoleFromUserTable" class="table table-condensed table-hover">
+ <table id="removeRoleFromUserTable" class="table table-condensed table-hover stupidtable">
<thead>
<tr>
<th data-sort="string">{{lang_Roles}}</th>