about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2023-07-11 17:08:24 +0000
committerzsloan2023-07-11 17:09:50 +0000
commit22190a94b84853f2a7bac4e6887fe6ac763c3f34 (patch)
tree9566a2306307292d2cf706123eda9290ccbc730a
parent29056b6b137d5005683a9a55a12a082f6d5ee835 (diff)
downloadgenenetwork2-22190a94b84853f2a7bac4e6887fe6ac763c3f34.tar.gz
Fix bug with add a trait to a collection from the trait page
Apparently collections/add needs the input to be passed as POST
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js
index 90c6015c..d09fbee9 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait.js
@@ -88,10 +88,14 @@ add = function() {
   var trait;
   trait = $("input[name=trait_hmac]").val();
   return $.colorbox({
-    href: "/collections/add?traits=" + trait
+    href: "/collections/add",
+    data: {
+      "traits": trait
+    }
   });
 };
 $('#add_to_collection').click(add);
+
 sampleLists = js_data.sample_lists;
 sampleGroupTypes = js_data.sample_group_types;