diff options
author | zsloan | 2021-02-12 21:10:23 +0000 |
---|---|---|
committer | zsloan | 2021-02-12 21:10:23 +0000 |
commit | b07861ddd9805903f8b8ac509d68718481c61c3b (patch) | |
tree | 02900132b165a7e753ef975dba23ce889785c794 | |
parent | 5c7dad304c633b11008ffabdd04e7c72988493ec (diff) | |
download | genenetwork2-b07861ddd9805903f8b8ac509d68718481c61c3b.tar.gz |
Fixed row highlighting for Interval Analyst table
-rw-r--r-- | wqflask/wqflask/templates/mapping_results.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html index a20b482f..c673ce51 100644 --- a/wqflask/wqflask/templates/mapping_results.html +++ b/wqflask/wqflask/templates/mapping_results.html @@ -7,6 +7,7 @@ <link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='purescript-genome-browser/css/purescript-genetics-browser.css') }}" /> <link rel="stylesheet" type="text/css" href="/static/new/css/marker_regression.css" /> + <link rel="stylesheet" type="text/css" href="static/new/css/show_trait.css" /> {% endblock %} {% from "base_macro.html" import header %} @@ -415,6 +416,19 @@ } ); {% elif selectedChr != -1 and plotScale =="physic" and (dataset.group.species == 'mouse' or dataset.group.species == 'rat') %} $('#trait_table').dataTable( { + "drawCallback": function( settings ) { + $('#trait_table tr').off().on("click", function(event) { + if (event.target.type !== 'checkbox' && event.target.tagName.toLowerCase() !== 'a') { + var obj =$(this).find('input'); + obj.prop('checked', !obj.is(':checked')); + } + if ($(this).hasClass("selected") && event.target.tagName.toLowerCase() !== 'a'){ + $(this).removeClass("selected") + } else if (event.target.tagName.toLowerCase() !== 'a') { + $(this).addClass("selected") + } + }); + }, "createdRow": function ( row, data, index ) { $('td', row).eq(1).attr("align", "right"); $('td', row).eq(3).attr("align", "right"); |