From 62dbbc440029efff136489f3a2d6cd8103207c05 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 14 Jul 2022 19:17:28 +0000 Subject: Remove column toggle JS from show_trait.html since it's in initialize_show_trait_tables.js --- wqflask/wqflask/templates/show_trait.html | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index f366d33f..460c7c62 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -213,32 +213,6 @@ } }); - $('.toggle-vis').on('click', function (e) { - e.preventDefault(); - - function toggle_column(column) { - //ZS: Toggle column visibility - column.visible( ! column.visible() ); - if (column.visible()){ - $(this).removeClass("active"); - } else { - $(this).addClass("active"); - } - } - - // Get the column API object - var target_cols = $(this).attr('data-column').split(",") - for (let i = 0; i < target_cols.length; i++){ - var column = primary_table.column( target_cols[i] ); - toggle_column(column); - - {% if sample_groups|length != 1 %} - var column2 = other_table.column( target_cols[i] ); - toggle_column(column2); - {% endif %} - } - } ); - $('#samples_primary, #samples_other').find("tr.outlier").css('background-color', 'orange') $('.edit_sample_checkbox:checkbox').change(function() { -- cgit v1.2.3