From c3e900a5b54df6255f3847038cc799c92860e7d9 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 2 Nov 2023 01:37:35 +0000 Subject: [PATCH] Bug 34913: Fix Activate/Deactive filters with table_filters.js This change prevents columnFilter from being called twice. If it's called twice, it compromises the formatting of the filters. --- koha-tmpl/intranet-tmpl/prog/js/table_filters.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js index 6c8dff92ab..b915ac7fe3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js +++ b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js @@ -19,12 +19,6 @@ function activate_filters(id, bShowFilters) { ,'bFiltersAlreadyActivated': false }); filters_row.addClass('columnFilter'); - } else { - table.dataTable().columnFilter({ - 'sPlaceHolder': 'head:after' - , "columns": aoColumns - ,'bFiltersAlreadyActivated': true - }); } if (bShowFilters) { -- 2.34.1