diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/create_datatable.js | 6 |
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'); + }); } |