From 8e04ccaec0df6706106ad41dce649a93a6fe39e7 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 14:31:48 +0100 Subject: [PATCH] fix other links --- static/ontology/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/ontology/index.js b/static/ontology/index.js index fef0d44..000b06e 100644 --- a/static/ontology/index.js +++ b/static/ontology/index.js @@ -153,7 +153,10 @@ function click(d) { } if (!d.children && ! d._children) { var name = d.parent.name + ': ' + d.name - document.location.href = '/clip/created/keywords=' + name + if (d.parent.name == 'other') { + name = d.name + } + window.open('/clip/created/keywords=' + name, '_blank'); } update(d); }