From 0114dc21550ea399d677c9bd4ee519adbbf1678c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 24 Feb 2023 15:47:41 +0100 Subject: [PATCH] Bug 33066: Fix dt - no need to reselect --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index d00d31b2f23..5da6c3c43d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -58,7 +58,7 @@ var dataTablesDefaults = { // When the DataTables search function is triggered, // enable or disable the "Clear filter" button based on // the presence of a search string - $("#" + tableId ).on( 'search.dt', function ( e, settings ) { + this.on( 'search.dt', function ( e, settings ) { toggledClearFilter(settings.oPreviousSearch.sSearch, tableId); }); } -- 2.25.1