aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/static
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-05 16:37:12 -0500
committerFrederick Muriuki Muriithi2024-06-05 16:37:12 -0500
commit0acac9d1d27d922e69fc2a2163429df5a69862a3 (patch)
treed862d772cce5dea89eefdf06c09ffad0dbc2e8e9 /gn2/wqflask/static
parent2353817c57f676d01bc0e51cfd4d8dc8d46e1bb0 (diff)
downloadgenenetwork2-0acac9d1d27d922e69fc2a2163429df5a69862a3.tar.gz
Build search URI endpoint on server rather than on JS
To help with maintenance, build the search URI on the server rather than in the javascript.
Diffstat (limited to 'gn2/wqflask/static')
-rw-r--r--gn2/wqflask/static/new/javascript/auth/search_phenotypes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/static/new/javascript/auth/search_phenotypes.js b/gn2/wqflask/static/new/javascript/auth/search_phenotypes.js
index e9ef2683..8689af75 100644
--- a/gn2/wqflask/static/new/javascript/auth/search_phenotypes.js
+++ b/gn2/wqflask/static/new/javascript/auth/search_phenotypes.js
@@ -119,7 +119,7 @@ function search_phenotypes() {
per_page = document.getElementById("txt-per-page").value
search_table = new TableDataSource(
"#tbl-phenotypes", "data-traits", search_checkbox);
- endpoint = "/auth/data/phenotype/search"
+ endpoint = endpoint = $("#frm-search-traits").attr("data-search-endpoint");
$.ajax(
endpoint,
{