From 1598eb9692eefdb98e3cebe313480ace18ec65ff Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 15 Oct 2019 12:16:43 -0500
Subject: Fixed issue that caused scatterplot covariates feature to not work
---
wqflask/wqflask/static/new/javascript/get_traits_from_collection.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js b/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js
index a34394a1..6f03b98f 100644
--- a/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js
+++ b/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js
@@ -182,7 +182,7 @@ trait_row_click = function() {
var dataset, this_trait_url, trait;
console.log("Clicking on:", $(this));
trait = $(this).find('.trait').text();
- dataset = $(this).find('.dataset').text();
+ dataset = $(this).find('.dataset').data("dataset");
this_trait_url = "/trait/get_sample_data?trait=" + trait + "&dataset=" + dataset;
$.ajax({
dataType: "json",
@@ -340,7 +340,6 @@ get_this_trait_vals = function(samples) {
this_trait_vals.push(null);
}
}
- console.log("this_trait_vals:", this_trait_vals);
this_vals_json = '[' + this_trait_vals.toString() + ']';
return this_trait_vals;
};
@@ -390,7 +389,7 @@ process_traits = function(trait_data, textStatus, jqXHR) {
}
the_html += "";
the_html += "";
- the_html += ""
+ the_html += ""
$("#collections_holder").html(the_html);
return $('#collections_holder').colorbox.resize();
};
--
cgit v1.2.3