aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gsearch_gene.html
diff options
context:
space:
mode:
authorJohn Nduli2024-09-12 16:59:52 +0300
committerBonfaceKilz2024-09-12 18:34:56 +0300
commit63de4403b6e2186c5758443ec9163fc57b8a012f (patch)
tree72da495194787479582492470b7801e70d3bf97b /gn2/wqflask/templates/gsearch_gene.html
parentc71f464c783ca49587a21a52054cb7237b7deb0c (diff)
downloadgenenetwork2-63de4403b6e2186c5758443ec9163fc57b8a012f.tar.gz
fix: stop extending gnqa_answer.html
gnqa_answer.html is used by htmx to return a post result. I revert my change and include this in `gnqa.html` instead, to load results from a GET request.
Diffstat (limited to 'gn2/wqflask/templates/gsearch_gene.html')
-rw-r--r--gn2/wqflask/templates/gsearch_gene.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html
index 091cc435..80ed8b47 100644
--- a/gn2/wqflask/templates/gsearch_gene.html
+++ b/gn2/wqflask/templates/gsearch_gene.html
@@ -16,8 +16,14 @@
</h3>
</div>
+
+ {% if do_ai_search %}
<div class="row" id="ai_result">
+ <div class="text-center" id="spinner">
+ <i class="fa fa-spinner fa-spin fa-3x"></i>
+ </div>
</div>
+ {% endif %}
<p>To study a record, click on its Record ID below.<br />Check records below and click Add button to add to selection.</p>
<div>
@@ -306,6 +312,9 @@
success: function(result) {
let ai_div = ai_content_div(result.search_term, result.search_result, result.search_url)
$("#ai_result").append(ai_div);
+ },
+ complete: function() {
+ $("#spinner").hide();
}
})
})