From 4e3537b9e7525ea7a886cd12205bc40a53c5046a Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Wed, 9 Dec 2020 17:32:11 +0300 Subject: add changes to auto_hide_column --- .../static/new/javascript/auto_hide_column.js | 36 ++++++++++------------ 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/auto_hide_column.js b/wqflask/wqflask/static/new/javascript/auto_hide_column.js index 2fc89786..1a4dc039 100644 --- a/wqflask/wqflask/static/new/javascript/auto_hide_column.js +++ b/wqflask/wqflask/static/new/javascript/auto_hide_column.js @@ -1,23 +1,21 @@ -function filterDatatable(datatable){ - let visitedFoundColumns=[] - let columnCount=datatable.columns().header().length; - let numberOfRows=datatable.data().length; - for (let i=0;ivisitedFoundColumns.indexOf(column)<0); - return datatable.columns(emptyColumns).visible(false); + return datatable.columns(invalidColumns).visible(false); -} \ No newline at end of file + } \ No newline at end of file -- cgit v1.2.3