aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r--gn2/wqflask/templates/gnqa.html2
-rw-r--r--gn2/wqflask/templates/gnqa_search_history.html6
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>