diff options
author | John Nduli | 2024-07-04 17:57:02 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:46 +0300 |
commit | 5846772bc355853abc57967eb496e5a236f88594 (patch) | |
tree | a4ef295a3e673f02599dec8037f676a0058c69ae | |
parent | d9623d35fc2f99d584b80d01044b257d3c626cb7 (diff) | |
download | genenetwork2-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.html | 2 |
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>") } }); |