aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-11-25 15:45:18 -0600
committerzsloan2020-11-25 15:45:18 -0600
commitd2db01fd8e69afdc6c21b4be529674fffe62b830 (patch)
treee208c0d44c914136efaf64ff66d216370738bb32
parent678d9cd4e073c3936c34d3b9b54f1e6c590def27 (diff)
downloadgenenetwork2-d2db01fd8e69afdc6c21b4be529674fffe62b830.tar.gz
Fixed the "Reset Columns" button to work with the new way of showing/hiding columns (that no longer uses DataTables buttons plug-in)
-rw-r--r--wqflask/wqflask/templates/correlation_page.html8
1 files changed, 7 insertions, 1 deletions
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();