From d2db01fd8e69afdc6c21b4be529674fffe62b830 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 25 Nov 2020 15:45:18 -0600 Subject: Fixed the "Reset Columns" button to work with the new way of showing/hiding columns (that no longer uses DataTables buttons plug-in) --- wqflask/wqflask/templates/correlation_page.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 3d543c35..6419b185 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -572,7 +572,7 @@ console.timeEnd("Creating table"); - $('.toggle-vis').on( 'click', function (e) { + $('.toggle-vis').on('click', function (e) { e.preventDefault(); // Get the column API object @@ -588,6 +588,12 @@ } } ); + $('#redraw').on('click', function (e) { + e.preventDefault(); + trait_table.columns().visible( true ); + $('.toggle-vis.active').removeClass('active'); + }); + submit_special = function(url) { $("#correlation_form").attr("action", url); return $("#correlation_form").submit(); -- cgit v1.2.3