diff options
author | Alexander_Kabui | 2024-09-05 13:56:27 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-05 13:56:27 +0300 |
commit | 93f91be029e62fbd96ca71f0cfc8792f564f899a (patch) | |
tree | 970dd5db103eb1088386a95d80e6f43f6d21f29f /gn2/wqflask/templates | |
parent | 54ac32749469be9c2e07ed941383341922f9e017 (diff) | |
download | genenetwork2-93f91be029e62fbd96ca71f0cfc8792f564f899a.tar.gz |
Modify UI url to fetch from correct history records.
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/gnqa.html | 2 | ||||
-rw-r--r-- | gn2/wqflask/templates/gnqa_search_history.html | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gn2/wqflask/templates/gnqa.html b/gn2/wqflask/templates/gnqa.html index 6969bad9..a2c1c276 100644 --- a/gn2/wqflask/templates/gnqa.html +++ b/gn2/wqflask/templates/gnqa.html @@ -92,7 +92,7 @@ <small> <sup> <button class="search-hist-btn" - hx-get="/gnqna/hist" + hx-get="/gnqna/records" hx-target="#swap" hx-swap="innerHTML">[Search History]</button> </sup> diff --git a/gn2/wqflask/templates/gnqa_search_history.html b/gn2/wqflask/templates/gnqa_search_history.html index 6042afe3..2019cb3b 100644 --- a/gn2/wqflask/templates/gnqa_search_history.html +++ b/gn2/wqflask/templates/gnqa_search_history.html @@ -30,13 +30,13 @@ style="height: 20px; width: 20px"> <div class="col-sm-10"> - <button hx-get="/gnqna/hist?query={{ item['query'] }}&search_term={{ item['task_id'] }}" + <button hx-get="/gnqna/record?query={{ item['query'] }}&search_task_id={{ item['task_id'] }}" hx-target="#swap" hx-swap="innerHTML" hx-trigger="click" data-bs-toggle="tooltip" data-bs-placement="left" - title="/gnqna/hist?query={{ item['query'] }}&search_term={{ item['task_id'] }}" + title="/gnqna/record?query={{ item['query'] }}&search_task_id={{ item['task_id'] }}" style="background:transparent; border:none; cursor:pointer"> @@ -54,7 +54,7 @@ </section> <script> htmx.on("#delete-btn", "click", function(evt){ - htmx.ajax("DELETE","/gnqna/hist", {target: "#search-hist","swap" :"outerHTML", + htmx.ajax("DELETE","/gnqna/records", {target: "#search-hist","swap" :"outerHTML", values: Array.from(htmx.findAll("input[type=checkbox]:checked"), e => e.value)}) }) </script> |