From e2c5c4e5584e9fe77eddc28363fe0f27065d45c0 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 29 Sep 2014 14:02:14 +0300 Subject: rhizicore: fix bug: hide links not currently focused or temporary bug introduced by cd7157955d15802f34dee6ac4578ae249f3e397d --- scripts/rhizicore.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 981d47be..9b1512c3 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -561,7 +561,12 @@ function myGraph(el) { linktext .text(function(d) { var name = d.name || ""; - if (name.length < 25 || d.source.state === "chosen" || d.target.state === "chosen" || d.state==="temp") { + if (!(d.target.state === "temp" || + d.source.state === "chosen" || d.target.state === "chosen")) { + return ""; + } + if (name.length < 25 || d.source.state === "chosen" || + d.target.state === "chosen" || d.state==="temp") { return name; } else { return name.substring(0, 14) + "..."; -- cgit v1.3.1