aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/static
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-29 16:35:09 +0300
committerFrederick Muriuki Muriithi2024-02-29 16:38:44 +0300
commit1aeb9bb244874b1137364c46c292a166d7b6e40a (patch)
tree36e60ffd04a4502a3b09a549c26e20b6587bf924 /gn2/wqflask/static
parent9de0898d95c2942c468e21f9c859adb138f80820 (diff)
downloadgenenetwork2-1aeb9bb244874b1137364c46c292a166d7b6e40a.tar.gz
Fix URI to query
Diffstat (limited to 'gn2/wqflask/static')
-rw-r--r--gn2/wqflask/static/new/javascript/auth/search_mrna.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn2/wqflask/static/new/javascript/auth/search_mrna.js b/gn2/wqflask/static/new/javascript/auth/search_mrna.js
index 3eca4ed2..76b2dc6b 100644
--- a/gn2/wqflask/static/new/javascript/auth/search_mrna.js
+++ b/gn2/wqflask/static/new/javascript/auth/search_mrna.js
@@ -10,6 +10,7 @@ function toggle_link_button() {
}
function search_mrna() {
+ form = document.getElementById("txt-query").form;
query = document.getElementById("txt-query").value;
selected = JSON.parse(document.getElementById(
"tbl-link").getAttribute("data-datasets"));
@@ -18,7 +19,7 @@ function search_mrna() {
search_table = new TableDataSource(
"#tbl-search", "data-datasets", search_checkbox);
$.ajax(
- search_endpoint,
+ form.action,
{
"method": "POST",
"contentType": "application/json; charset=utf-8",
@@ -29,7 +30,7 @@ function search_mrna() {
"dataset_type": "mrna",
"species_name": species_name}),
"error": function(jqXHR, textStatus, errorThrown) {
- error_data = jqXHR.responseJSON
+ error_data = jqXHR.responseJSON;
console.debug("ERROR_DATA:", error_data);
elt = document.getElementById("search-error").setAttribute(
"style", "display: block;");