aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-14 19:17:28 +0000
committerzsloan2022-07-14 19:17:28 +0000
commit62dbbc440029efff136489f3a2d6cd8103207c05 (patch)
tree71400245560a0bea31eda0edd79b7bdc00b4b19f
parentbf192a52da5091e2e8aac864092a89d4e106f898 (diff)
downloadgenenetwork2-62dbbc440029efff136489f3a2d6cd8103207c05.tar.gz
Remove column toggle JS from show_trait.html since it's in initialize_show_trait_tables.js
-rw-r--r--wqflask/wqflask/templates/show_trait.html26
1 files changed, 0 insertions, 26 deletions
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() {