diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-21 16:40:56 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-21 16:41:18 +0200 |
| commit | 564b1e098fb92db2a9ad50317220ada8c3a847c0 (patch) | |
| tree | 01b6149596a0e18a8b69a3da829651cd61805b8b /src/client | |
| parent | d2fdf937887da62fa97a35d1be5d3547989a7ffb (diff) | |
client: fix url link icon on node edit
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/view/graph_view.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index b88dbb56..ce5fc81f 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -409,8 +409,6 @@ function GraphView(spec) { return d.url !== undefined && d.url !== null && d.url.length > 0; }; - noderef.attr("visibility", function(d) { return urlValid(d) ? "visible" : "hidden"; }); - noderef.attr("pointer-events", function(d) { return urlValid(d) ? "all" : "none"; }); var nodeText = function(d) { if (!d.name) { return "_"; @@ -429,7 +427,9 @@ function GraphView(spec) { node.select('g.node text') .text(nodeText); node.select('g.node a') - .attr("xlink:href", function (d) { return d.url; }); + .attr("xlink:href", function (d) { return d.url; }) + .attr("visibility", function(d) { return urlValid(d) ? "visible" : "hidden"; }) + .attr("pointer-events", function(d) { return urlValid(d) ? "all" : "none"; }); node.select('g.node text') .attr("dx", nodeTextX); |
