diff options
author | zsloan | 2021-01-14 14:22:02 -0600 |
---|---|---|
committer | zsloan | 2021-01-14 14:22:02 -0600 |
commit | 4a67b437215b04a089449f93cfa9ebcaed5640dd (patch) | |
tree | 1016de7bbe56b2b3e8ddaede39ce539f77ea3a6c | |
parent | 2016470a13945e6bb833d28583de9e0877fe91eb (diff) | |
download | genenetwork2-4a67b437215b04a089449f93cfa9ebcaed5640dd.tar.gz |
Re-added some code that was accidentally removed that was needed for adding cofactors to mapping
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 2ec9d6d5..1c8e328d 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -95,6 +95,14 @@ $('#add_to_collection').click(add); sample_lists = js_data.sample_lists; sample_group_types = js_data.sample_group_types; +$(".select_covariates").click(function () { + open_covariate_selection(); +}); +$(".remove_covariates").click(function () { + $("input[name=covariates]").val("") + $(".selected-covariates").val("") +}); + open_trait_selection = function() { return $('#collections_holder').load('/collections/list?color_by_trait #collections_list', (function(_this) { return function() { |