aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Nduli2024-07-04 17:57:02 +0300
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commit5846772bc355853abc57967eb496e5a236f88594 (patch)
treea4ef295a3e673f02599dec8037f676a0058c69ae
parentd9623d35fc2f99d584b80d01044b257d3c626cb7 (diff)
downloadgenenetwork2-5846772bc355853abc57967eb496e5a236f88594.tar.gz
fix: show no_data instead of Loading when there is no results from search
-rw-r--r--gn2/wqflask/templates/gsearch_gene.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html
index c5575699..3432662d 100644
--- a/gn2/wqflask/templates/gsearch_gene.html
+++ b/gn2/wqflask/templates/gsearch_gene.html
@@ -261,6 +261,8 @@
if (traitsJson.length > 0) {
create_table(tableId, traitsJson, columnDefs, tableSettings);
+ } else {
+ $("#" + tableId +" td").replaceWith("<td>No data</td>")
}
});