aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn2/wqflask/static/new/javascript/auth/search_mrna.js5
-rw-r--r--gn2/wqflask/templates/oauth2/data-list-mrna.html4
2 files changed, 1 insertions, 8 deletions
diff --git a/gn2/wqflask/static/new/javascript/auth/search_mrna.js b/gn2/wqflask/static/new/javascript/auth/search_mrna.js
index ed264bb4..76b2dc6b 100644
--- a/gn2/wqflask/static/new/javascript/auth/search_mrna.js
+++ b/gn2/wqflask/static/new/javascript/auth/search_mrna.js
@@ -15,17 +15,12 @@ function search_mrna() {
selected = JSON.parse(document.getElementById(
"tbl-link").getAttribute("data-datasets"));
species_name = document.getElementById("txt-species-name").value
- bearer_token = document.getElementById("bearer_token").value
search_endpoint = "/auth/data/mrna/search"
search_table = new TableDataSource(
"#tbl-search", "data-datasets", search_checkbox);
$.ajax(
form.action,
{
-
- "beforeSend": function (xhr) {
- xhr.setRequestHeader('Authorization', 'Bearer ' + bearer_token);
- },
"method": "POST",
"contentType": "application/json; charset=utf-8",
"dataType": "json",
diff --git a/gn2/wqflask/templates/oauth2/data-list-mrna.html b/gn2/wqflask/templates/oauth2/data-list-mrna.html
index 0ee9d27e..c5c1c27e 100644
--- a/gn2/wqflask/templates/oauth2/data-list-mrna.html
+++ b/gn2/wqflask/templates/oauth2/data-list-mrna.html
@@ -92,11 +92,9 @@
<div class="row">
<span id="search-messages" class="alert-danger" style="display:none"></span>
<form id="frm-search"
- action="{{search_uri}}"
+ action="{{url_for('oauth2.data.json_search_mrna')}}"
method="POST">
<legend>Search: mRNA Assay</legend>
-
- <input type="hidden" id="bearer_token" name="bearer_token" value="{{bearer_token}}" />
<input type="hidden" value="{{species_name}}" name="species"
id="txt-species-name" />
<input type="hidden" value="{{dataset_type}}" name="dataset_type"