Bug 38436: Restore hide columns when empty

If a column has no data on the items table we should hide the column.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-11-15 16:06:23 +01:00 committed by Katrin Fischer
parent a29dac8385
commit 5829cb6b4f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@
function update_columns_visibility(settings){
let table = settings.oInstance.api();
table.columns().visible(true, false);
table.columns().every(function(i){
table.columns().every(function(){
let i = this.index();
let is_empty = true;
let nodes = this.nodes();
nodes.each((td, ii) => {