From 3ed38e6a21c55d9342d05df053a73b7a06f1a74e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 29 Jan 2021 00:37:48 +0000 Subject: [PATCH] Bug 27403: Possible item search fix 1. Submit an item search that will return multiple results. 2. After the results have loaded, click the "Edit search" button. 3. As you scroll down, the toolbar sticks to the top of the browser window but then the table header jumps into view before the table of results has scrolled into view. 4. Apply this patch and try again, the table header should not act weird. 5. Make sure all the dataTable controls still work --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 919fad3188..42292e88c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -331,6 +331,10 @@ .on('click', function(e) { e.preventDefault(); $('#item-search-block').show(); + $('#results').DataTable().destroy(); + $('#results').DataTable( { + fixedHeader: true + }); }); function getCheckedItemnumbers () { -- 2.11.0