aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-06-09 20:17:38 -0500
committerzsloan2019-06-09 20:17:38 -0500
commit573b9e154244da07c1ac639b4158cfba74cec180 (patch)
treed035590b88d5529c27927774dd79be340ee1df69
parenta5f6f1e7a892b16922eb2467950fa5145894c759 (diff)
downloadgenenetwork2-573b9e154244da07c1ac639b4158cfba74cec180.tar.gz
Issue with encoding should be fixed for both global searches now
-rw-r--r--wqflask/wqflask/templates/gsearch_gene.html6
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html2
2 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html
index 4672f161..9984c0b6 100644
--- a/wqflask/wqflask/templates/gsearch_gene.html
+++ b/wqflask/wqflask/templates/gsearch_gene.html
@@ -158,7 +158,11 @@
'type': "natural",
'data': null,
'render': function(data, type, row, meta) {
- return decodeURIComponent(escape(data.description))
+ try {
+ return decodeURIComponent(escape(data.description))
+ } catch {
+ return escape(data.description))
+ }
}
},
{
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 7e2e6997..a34c2796 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -136,7 +136,7 @@
'render': function(data, type, row, meta) {
try {
return decodeURIComponent(escape(data.description))
- } except {
+ } catch {
return escape(data.description)
}
}