diff options
author | Frederick Muriuki Muriithi | 2024-06-05 16:37:12 -0500 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:45 +0300 |
commit | 16b9ccc56a99f1290825c36b3788590a585920a6 (patch) | |
tree | d8ea2c74314a1b9928597115b12880d2ecab8d20 /gn2/wqflask/static/new/javascript/auth | |
parent | 2439a4a0af29a57adc55fec093e4231c7b320ff6 (diff) | |
download | genenetwork2-16b9ccc56a99f1290825c36b3788590a585920a6.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/new/javascript/auth')
-rw-r--r-- | gn2/wqflask/static/new/javascript/auth/search_phenotypes.js | 2 |
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, { |