From 11e0043a7f8d9bd598882e783b284f7aa9890ffe Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Jan 2021 16:33:43 +0100 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 9d03a108a9..8b6d18d85e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -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, -- 2.11.0