From 508a24488190ee5ca22294fd4331d857efcf170b Mon Sep 17 00:00:00 2001
From: zsloan
Date: Wed, 1 Jun 2022 17:53:34 +0000
Subject: Remove IDs called 'submit' to prevent forms from breaking
Apparently if a button has an ID called 'submit', trying to submit a
form via JS won't work
---
.../wqflask/static/new/javascript/get_covariates_from_collection.js | 2 +-
wqflask/wqflask/static/new/javascript/get_traits_from_collection.js | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/wqflask/wqflask/static/new/javascript/get_covariates_from_collection.js b/wqflask/wqflask/static/new/javascript/get_covariates_from_collection.js
index fd14bb2b..ba8fa8b0 100644
--- a/wqflask/wqflask/static/new/javascript/get_covariates_from_collection.js
+++ b/wqflask/wqflask/static/new/javascript/get_covariates_from_collection.js
@@ -210,7 +210,7 @@ process_traits = function(trait_data, textStatus, jqXHR) {
var the_html, trait, _i, _len;
the_html = "";
- the_html += " ";
+ the_html += " ";
the_html += "
";
the_html += " | Record | Data Set | Description |
";
the_html += "";
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 626357d4..c115f3b0 100644
--- a/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js
+++ b/wqflask/wqflask/static/new/javascript/get_traits_from_collection.js
@@ -373,7 +373,7 @@ process_traits = function(trait_data, textStatus, jqXHR) {
var the_html, trait, _i, _len;
the_html = "";
- the_html += " ";
+ the_html += " ";
the_html += "";
the_html += " | Record | Data Set | Description |
";
the_html += "";
@@ -405,10 +405,10 @@ back_to_collections = function() {
};
$(".collection_line").on("click", collection_click);
-$("#submit").on("click", submit_click);
+$("#submit_cofactors").on("click", submit_click);
if ($('#scatterplot2').length){
$(".trait_line").on("click", trait_row_click);
} else {
$(".trait").on("click", trait_click);
}
-$("#back_to_collections").on("click", back_to_collections);
\ No newline at end of file
+$("#back_to_collections").on("click", back_to_collections);
--
cgit v1.2.3