summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-29 14:02:14 +0300
committerAlon Levy <alon@pobox.com>2014-09-29 14:02:17 +0300
commite2c5c4e5584e9fe77eddc28363fe0f27065d45c0 (patch)
treefcd0c45d4a2ee17f211be2c5e97cca3dc3e1b4c8 /scripts
parentc9b0d4955ce72e0f080a0dc4394e72fe6806cc5e (diff)
rhizicore: fix bug: hide links not currently focused or temporary
bug introduced by cd7157955d15802f34dee6ac4578ae249f3e397d
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js7
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) + "...";