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.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
David Cook 2023-11-02 01:37:35 +00:00 committed by Katrin Fischer
parent 63183059dd
commit a3accea1dd
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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) {