diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-11 16:04:28 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-11 16:05:13 +0200 |
| commit | 4dbf124c2a8a8ec1f73951baa146332cb1c8bf6f (patch) | |
| tree | ef062baaca40be30cf6cf5850a2be26cd5f9a575 /src/client/view/graph_view.js | |
| parent | b60be8cc54af6d32d87e40a43182d3d01a7fe1b8 (diff) | |
client/graph_view: set linktext class on update_view
Diffstat (limited to 'src/client/view/graph_view.js')
| -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 6927c525..a6639f48 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -262,9 +262,6 @@ function GraphView(spec) { linktext.enter() .append("text") .attr('id', function(d){ return d.id; }) // append link id to enable data->visual mapping - .attr("class", function(d) { - return ["linklabel graph", selection.selected_class__link(d)].join(' '); - }) .attr("text-anchor", "middle") .on("click", function(d, i) { if (!temporary) { // FIXME: if temporary don't even put a click handler @@ -286,6 +283,9 @@ function GraphView(spec) { } else { return name.substring(0, 14) + "..."; } + }) + .attr("class", function(d) { + return ["linklabel graph", selection.selected_class__link(d)].join(' '); }); linktext.exit().remove(); |
