diff options
Diffstat (limited to 'modules-available/permissionmanager')
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> |