about summary refs log tree commit diff
path: root/gn2/wqflask/templates/gnqa_search_history.html
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-05 13:56:27 +0300
committerAlexander_Kabui2024-09-05 13:56:27 +0300
commit93f91be029e62fbd96ca71f0cfc8792f564f899a (patch)
tree970dd5db103eb1088386a95d80e6f43f6d21f29f /gn2/wqflask/templates/gnqa_search_history.html
parent54ac32749469be9c2e07ed941383341922f9e017 (diff)
downloadgenenetwork2-93f91be029e62fbd96ca71f0cfc8792f564f899a.tar.gz
Modify UI url to fetch from correct history records.
Diffstat (limited to 'gn2/wqflask/templates/gnqa_search_history.html')
-rw-r--r--gn2/wqflask/templates/gnqa_search_history.html6
1 files changed, 3 insertions, 3 deletions
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>