summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-14 11:37:37 +0200
committerAlon Levy <alon@pobox.com>2015-04-14 13:32:38 +0200
commitad7f73ece376808a2285de1c51e9c3f380ebe720 (patch)
tree7e368993b3c9fd7c10e0b4c6a5633746520ba761 /src/client
parent73f5b1df71d7908b9a8859ab970967cfdbcf9d66 (diff)
client/graph_view: s/nodeTextX/node__text_x/
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/graph_view.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index a9a0fe29..32b94aca 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -450,8 +450,8 @@ function GraphView(spec) {
});
}
- var nodeTextX = function(d) {
- return urlValid(d.url) ? node_text_dx + node_url_dx : node_text_dx;
+ var node__text_x = function(d) {
+ return node_text_dx + (urlValid(d.url) ? node_url_dx : 0);
}
function model_id_from_dom_id(dom_id) {
@@ -471,7 +471,7 @@ function GraphView(spec) {
return;
}
if (!temporary) {
- svgInput.enable(this.querySelector('text'), d, nodeTextX(d));
+ svgInput.enable(this.querySelector('text'), d, node__text_x(d));
(d3.event.shiftKey ? selection.invert_nodes : selection.select_nodes)([d]);
showNodeInfo(graph.find_node__by_id(model_id_from_dom_id(this.id)));
}
@@ -497,7 +497,7 @@ function GraphView(spec) {
}
};
node_text.select('text').text(nodeText)
- .attr("dx", nodeTextX);
+ .attr("dx", node__text_x);
node_text.attr('class', function(d) {
return ['nodetext graph', selection.class__node(d, temporary)].join(' ');
});