From cb4c2af29ff5565810c9d1e32d615cab30be88ae Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 13 Nov 2024 15:31:22 +0000 Subject: [PATCH] Revert "Bug 38391: Redraw the filters row on table redraw" This reverts commit af6b0510d7f00fae32f001afb2aaccd9064a9092. Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 82c3cd4fbe..1a0a893c5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1143,7 +1143,7 @@ function _dt_save_restore_state(table_settings, external_filter_nodes={}){ _dt_add_filters(this, table_dt, filters_options); } - table_dt.on("draw", function(){ + table_dt.on("column-visibility.dt", function(){ if ( add_filters ) { _dt_add_filters(this, table_dt, filters_options); } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue index 1e9f33c89b..d56b9563c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue @@ -224,7 +224,7 @@ export default { _dt_add_filters(table_node, dt, filters_options) } - dt.on("draw", function () { + dt.on("column-visibility.dt", function () { if (add_filters) { _dt_add_filters(table_node, dt, filters_options) }