aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-27 19:29:37 +0000
committerzsloan2022-07-27 19:29:37 +0000
commit6144a94c440d322bdd0dabca7dbe8389d99bda43 (patch)
tree4a6bcd18b6817600679f5caf77af396a6722873f
parent5f4722b894c7ff18fb191b82bbc3bcfb881da004 (diff)
downloadgenenetwork2-6144a94c440d322bdd0dabca7dbe8389d99bda43.tar.gz
Add table redraw function to create_datatable.js since it applies to multiple tables
-rw-r--r--wqflask/wqflask/static/new/javascript/create_datatable.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/create_datatable.js b/wqflask/wqflask/static/new/javascript/create_datatable.js
index 8f24df1e..68296f06 100644
--- a/wqflask/wqflask/static/new/javascript/create_datatable.js
+++ b/wqflask/wqflask/static/new/javascript/create_datatable.js
@@ -109,4 +109,10 @@ create_table = function(tableId="trait_table", tableData = [], columnDefs = [],
toggleColumn(column);
}
} );
+
+ $('#redraw').on('click', function (e) {
+ e.preventDefault();
+ trait_table.columns().visible( true );
+ $('.toggle-vis.active').removeClass('active');
+ });
}