From 573b9e154244da07c1ac639b4158cfba74cec180 Mon Sep 17 00:00:00 2001 From: zsloan Date: Sun, 9 Jun 2019 20:17:38 -0500 Subject: Issue with encoding should be fixed for both global searches now --- wqflask/wqflask/templates/gsearch_gene.html | 6 +++++- wqflask/wqflask/templates/gsearch_pheno.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'wqflask') 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) } } -- cgit v1.2.3