diff options
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 7 |
1 files changed, 6 insertions, 1 deletions
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) + "..."; |
