From 63b4a9b7711f7b19913f25a9c63ae2c2ff7b4e34 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Nov 2024 16:58:50 +0100 Subject: [PATCH] Bug 38391: Do not redraw on adjusting col vis in drawcallback Signed-off-by: Owen Leonard --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index f9cd7e81c9..047f095fd5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -125,7 +125,7 @@ function update_columns_visibility(settings){ let table = settings.oInstance.api(); - table.columns().visible(true); + table.columns().visible(true, false); table.columns().every(function(i){ let is_empty = true; let nodes = this.nodes(); @@ -136,7 +136,7 @@ } }); if ( is_empty ) { - table.columns(i).visible(false); + table.columns(i).visible(false, false); } }); } -- 2.39.5