Bug 29832: Use KohaTable

NoSort is defined in KohaTable

Also add noExport

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-02-01 16:38:15 +01:00 committed by Fridolin Somers
parent b3a0f559dd
commit 2a3d0fa762
1 changed files with 5 additions and 7 deletions

View File

@ -180,7 +180,7 @@
<th>Desk ID</th>
<th>Desk</th>
<th>Library</th>
<th class="nosort">Action</th>
<th class="NoSort noExport">Action</th>
</tr>
</thead>
<tbody>
@ -217,14 +217,12 @@
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script>
$(document).ready(function() {
$("#table_desks").dataTable($.extend(true, {}, dataTablesDefaults, {
"order": [[ 1, "asc" ]],
"columnDefs": [
{ "orderable": false, "searchable": false, 'targets': ['nosort'] },
],
}));
KohaTable("table_desks", {
"order": [[ 1, "asc" ]]
});
});
</script>
[% END %]