aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-10-15 12:16:43 -0500
committerzsloan2019-10-15 12:16:43 -0500
commit1598eb9692eefdb98e3cebe313480ace18ec65ff (patch)
tree465cd0843fd596fce964b40eed6fccc060c902ad /wqflask
parent1df4248f88a1bbbc82446cd5e51daf07597b57bc (diff)
downloadgenenetwork2-1598eb9692eefdb98e3cebe313480ace18ec65ff.tar.gz
Fixed issue that caused scatterplot covariates feature to not work
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/get_traits_from_collection.js5
1 files 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 += "</tbody>";
the_html += "</table>";
- the_html += "<script type='text/javascript' src='/static/new/javascript/get_covariates_from_collection.js'></script>"
+ the_html += "<script type='text/javascript' src='/static/new/javascript/get_traits_from_collection.js'></script>"
$("#collections_holder").html(the_html);
return $('#collections_holder').colorbox.resize();
};