aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-05-23 10:59:50 -0500
committerzsloan2019-05-23 10:59:50 -0500
commit338521197f5de79bafa8f230c692d3efab0da9c1 (patch)
tree1dff9118aa5eb70e4d68da5ef1e7b19adfbf7739 /wqflask
parentd906fe9bf77b9d18f787843f91882db9b88a755e (diff)
downloadgenenetwork2-338521197f5de79bafa8f230c692d3efab0da9c1.tar.gz
Fixed issue where some descriptions caused an error
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index cb43d989..e20ea2d3 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -281,7 +281,11 @@
'width': "300px",
'data': null,
'render': function(data, type, row, meta) {
- return decodeURIComponent(escape(data.description))
+ try {
+ return decodeURIComponent(escape(data.description))
+ } catch {
+ return escape(data.description)
+ }
}
},
{