diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-29 14:02:14 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-29 14:02:17 +0300 |
| commit | e2c5c4e5584e9fe77eddc28363fe0f27065d45c0 (patch) | |
| tree | fcd0c45d4a2ee17f211be2c5e97cca3dc3e1b4c8 /scripts | |
| parent | c9b0d4955ce72e0f080a0dc4394e72fe6806cc5e (diff) | |
rhizicore: fix bug: hide links not currently focused or temporary
bug introduced by cd7157955d15802f34dee6ac4578ae249f3e397d
Diffstat (limited to 'scripts')
| -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) + "..."; |
