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:
parent
a29dac8385
commit
5829cb6b4f
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue