diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-29 15:33:03 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-29 15:33:03 +0200 |
| commit | cb3ace33ac5cac97dd887f98297bfddfed383911 (patch) | |
| tree | 311dd59c618f7a1e5095c6654485aa1b986141b1 /src/client/view/graph_view.js | |
| parent | fb2696367569e9befc18a58a0024d6a8c8ebcb69 (diff) | |
client: fix links to open in new tab; Fixes #295
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 6930b24d..1ead49aa 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -441,6 +441,7 @@ function GraphView(spec) { node.select('g.node a') .attr("xlink:href", function (d) { return d.url; }) .attr("xlink:title", function (d) { return d.url; }) + .attr("target", "_blank") .attr("visibility", function(d) { return urlValid(d) ? "visible" : "hidden"; }) .attr("pointer-events", function(d) { return urlValid(d) ? "all" : "none"; }); node.select('g.node text') |
