diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-05 13:54:05 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-05 13:54:23 +0300 |
| commit | 3fd52f9c372a893d4a6657edc07229d1a6e693b9 (patch) | |
| tree | 9a0531e421c73da9b578dad11df9f2ac1fbe18fa /src/client/view/graph_view.js | |
| parent | fb67d553eaf8966d301b7c038e515cd771aa917a (diff) | |
client/view/graph_view: fix hidden link text with new link selection
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 634ff7a5..a1a2fe1d 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -629,13 +629,12 @@ function GraphView(spec) { link_text .text(function(d) { - var src_selected = selection.node_selected(d.__src), - dst_selected = selection.node_selected(d.__dst); + var related = selection.link_related(d); - if (!temporary && !src_selected && !dst_selected) { + if (!temporary && !related) { return ""; } - if (src_selected && dst_selected) { + if (related) { return d.name; } return link_text__short(d); |
