From d72aa3b0ef39cef58a38a588cb2d07762a7ca424 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 18 Sep 2024 18:51:56 +0000 Subject: Show the Location for the Description when selecting a cofactor that is a genotype marker --- gn2/wqflask/static/new/javascript/get_traits_from_collection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gn2') diff --git a/gn2/wqflask/static/new/javascript/get_traits_from_collection.js b/gn2/wqflask/static/new/javascript/get_traits_from_collection.js index c115f3b0..6968a9d7 100644 --- a/gn2/wqflask/static/new/javascript/get_traits_from_collection.js +++ b/gn2/wqflask/static/new/javascript/get_traits_from_collection.js @@ -389,7 +389,11 @@ process_traits = function(trait_data, textStatus, jqXHR) { the_html += "" + trait.name + ""; } the_html += "" + trait.dataset_name + ""; - the_html += "" + trait.description + ""; + if (trait.dataset.includes('Geno')) { + the_html += "" + trait.location + ""; + } else { + the_html += "" + trait.description + ""; + } } the_html += ""; the_html += ""; -- cgit v1.2.3