diff options
author | Alexander Kabui | 2024-08-30 16:47:55 +0300 |
---|---|---|
committer | GitHub | 2024-08-30 16:47:55 +0300 |
commit | ed20621c23a9a41152f3d6a48334f2a31c018033 (patch) | |
tree | 5e2182b99f5f05e2f667dfce1b762921c4ec62dc /gn2/wqflask/templates/search_result_page.html | |
parent | 9a345d8abf2f0045b2c47bfcf1ae5860273452be (diff) | |
parent | 6db49002d4d2e69fcf4fdd6be6aceeea7b95664f (diff) | |
download | genenetwork2-ed20621c23a9a41152f3d6a48334f2a31c018033.tar.gz |
Merge pull request #861 from genenetwork/feature/gnqa-search-2
Feature/gnqa search 2
Diffstat (limited to 'gn2/wqflask/templates/search_result_page.html')
-rw-r--r-- | gn2/wqflask/templates/search_result_page.html | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/gn2/wqflask/templates/search_result_page.html b/gn2/wqflask/templates/search_result_page.html index 934b6a9d..fccda1ae 100644 --- a/gn2/wqflask/templates/search_result_page.html +++ b/gn2/wqflask/templates/search_result_page.html @@ -224,7 +224,8 @@ 'type': "natural", 'width': "{{ max_widths.symbol * 8 }}px", 'targets': 3, - 'data': "symbol" + 'data': "symbol", + 'defaultContent': "N/A" }, { 'title': "Description", @@ -237,9 +238,9 @@ description = data.description.slice(0, 200) + '...' } try { - return decodeURIComponent(escape(description)) + return decodeURIComponent(description) } catch(err){ - return escape(description) + return description } } }, @@ -248,14 +249,16 @@ 'type': "natural-minus-na", 'width': "130px", 'targets': 5, - 'data': "location" + 'data': "location", + 'defaultContent': "N/A" }, { 'title': "<div style='text-align: right;'>Mean</div>", 'type': "natural-minus-na", 'width': "40px", - 'data': "mean", 'targets': 6, + 'data': "mean", + 'defaultContent': "N/A", 'orderSequence': [ "desc", "asc"] }, { @@ -279,6 +282,7 @@ 'data': "additive", 'width': "65px", 'targets': 9, + 'defaultContent': "N/A", 'orderSequence': [ "desc", "asc"] }{% elif dataset.type == 'Publish' %}, { @@ -294,6 +298,7 @@ { 'title': "Description", 'type': "natural", + 'width': "500px", 'data': null, 'targets': 3, 'render': function(data) { @@ -302,9 +307,9 @@ description = data.description.slice(0, 200) + '...' } try { - return decodeURIComponent(escape(description)) + return decodeURIComponent(description) } catch(err){ - return escape(description) + return description } } }, @@ -312,8 +317,9 @@ 'title': "<div style='text-align: right;'>Mean</div>", 'type': "natural-minus-na", 'width': "60px", - 'data': "mean", 'targets': 4, + 'data': "mean", + 'defaultContent': "N/A", 'orderSequence': [ "desc", "asc"] }, { |