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) }