From 059ac97dd49f05d61e4f79319eaeaa6ba95b83d0 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 14:29:27 +0100 Subject: [PATCH] link all nodes --- static/ontology/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/ontology/index.js b/static/ontology/index.js index e30a0fb..fef0d44 100644 --- a/static/ontology/index.js +++ b/static/ontology/index.js @@ -47,9 +47,6 @@ function get_color(d) { if (d.children || d._children) { return '#fff' } - if (d.size == 1) { - return "gray"; - } return "lightsteelblue"; } function update(source) { @@ -80,7 +77,7 @@ function update(source) { .attr("dy", ".35em") .attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; }) .text(function(d) { - if (d.children || d._children || d.size == 1) { + if (d.children || d._children) { return d.name; } return d.name + ' (' + d.size + ')'; @@ -154,7 +151,7 @@ function click(d) { d.children = d._children; d._children = null; } - if (!d.children && ! d._children && d.size > 1) { + if (!d.children && ! d._children) { var name = d.parent.name + ': ' + d.name document.location.href = '/clip/created/keywords=' + name }