aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-06-09 20:09:15 -0500
committerzsloan2019-06-09 20:09:15 -0500
commita5f6f1e7a892b16922eb2467950fa5145894c759 (patch)
tree7eea4894b7a78c544e7adb25c32b3e532264cf72
parentdca78fcaa95dbbd2cb2f5e51461525b0f9f1b3e6 (diff)
downloadgenenetwork2-a5f6f1e7a892b16922eb2467950fa5145894c759.tar.gz
Fixed javascript error with phenotype global search
-rw-r--r--wqflask/wqflask/templates/gsearch_pheno.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html
index 7dc22a88..7e2e6997 100644
--- a/wqflask/wqflask/templates/gsearch_pheno.html
+++ b/wqflask/wqflask/templates/gsearch_pheno.html
@@ -134,7 +134,11 @@
'width': "25%",
'data': null,
'render': function(data, type, row, meta) {
- return decodeURIComponent(escape(data.description))
+ try {
+ return decodeURIComponent(escape(data.description))
+ } except {
+ return escape(data.description)
+ }
}
},
{