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> (cherry picked from commit 5804de2463e924dd660b4dc84caaa394f111a139) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e4c9448207
commit
e63c57c3d0
1 changed files with 0 additions and 6 deletions
|
@ -19,12 +19,6 @@ function activate_filters(id, bShowFilters) {
|
||||||
,'bFiltersAlreadyActivated': false
|
,'bFiltersAlreadyActivated': false
|
||||||
});
|
});
|
||||||
filters_row.addClass('columnFilter');
|
filters_row.addClass('columnFilter');
|
||||||
} else {
|
|
||||||
table.dataTable().columnFilter({
|
|
||||||
'sPlaceHolder': 'head:after'
|
|
||||||
, "columns": aoColumns
|
|
||||||
,'bFiltersAlreadyActivated': true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bShowFilters) {
|
if (bShowFilters) {
|
||||||
|
|
Loading…
Reference in a new issue