diff options
author | zsloan | 2021-10-08 22:49:20 +0000 |
---|---|---|
committer | zsloan | 2021-10-08 22:49:20 +0000 |
commit | e473a210491620477898ba69f33f69f14fdf5893 (patch) | |
tree | 01c3bfadb3029c2878645e645d9df0dff7381fca | |
parent | b37a9c6c495d142852d0cee54d83f5c9e815e37b (diff) | |
download | genenetwork2-e473a210491620477898ba69f33f69f14fdf5893.tar.gz |
Fix issue where outliers weren't being highlighted for rows drawn by Scroller (so all rows beyond a certain point)
-rw-r--r-- | wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 2 | ||||
-rw-r--r-- | wqflask/wqflask/templates/show_trait.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js index 4de1b0ac..0a060cdc 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -130,6 +130,7 @@ var primary_table = $('#samples_primary').DataTable( { $(row).addClass("value_se"); if (data.outlier) { $(row).addClass("outlier"); + $(row).attr("style", "background-color: orange;"); } $('td', row).eq(1).addClass("column_name-Index") $('td', row).eq(2).addClass("column_name-Sample") @@ -189,6 +190,7 @@ if (js_data.sample_lists.length > 1){ $(row).addClass("value_se"); if (data.outlier) { $(row).addClass("outlier"); + $(row).attr("style", "background-color: orange;"); } $('td', row).eq(1).addClass("column_name-Index") $('td', row).eq(2).addClass("column_name-Sample") diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 3dbf5f57..f3fa1332 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -254,8 +254,6 @@ } ); {% endif %} - $('#samples_primary, #samples_other').find("tr.outlier").css('background-color', 'orange') - $('.edit_sample_checkbox:checkbox').change(function() { if ($(this).is(":checked")) { if (!$(this).closest('tr').hasClass('selected')) { |