Bug 27403: Add fixedHeader to Datatables

That's a great plugin to have fixed header.

Test plan:
On the cities table or the patron search table confirm that the header
is floating is you scroll down

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-01-11 16:33:43 +01:00
parent c8adefecb7
commit acb024396b
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ var dataTablesDefaults = {
}],
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, __('All')]],
"iDisplayLength": 20,
"fixedHeader": true,
initComplete: function( settings) {
var tableId = settings.nTable.id
// When the DataTables search function is triggered,