diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-14 13:54:36 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-14 13:54:36 +0200 |
| commit | 4485119143b2fe129373a7bc9f12c0901349cada (patch) | |
| tree | 1243b3aeb381e2dd98dbf2987c02532f5d267f3d /src | |
| parent | d7e050438980f37816c8919d016d3a907f85f87a (diff) | |
client/graph_view: turn off image url display for now, not done yet, accidentally pushed
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/view/graph_view.js | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index e0bdb6ee..83426b50 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -728,25 +728,8 @@ function GraphView(spec) { .each(function () { load_image(this, "/static/img/url-icon.png"); }); - var image = nodeEnter - .insert("image") - .attr("y", 9); - node.select('g.node > image').each(function (d) { - var image_url = d['image-url']; - - if (urlImage(image_url)) { - load_image(this, image_url); - } - }) - .attr("display", function(d) { - return urlImage(d['image-url']) ? "" : "none"; - }) - .on("click", node_click_handler); - - node.attr("transform", node__transform); - - function node_click_handler(d, i) { + function node__click_handler(d, i) { if (d3.event.defaultPrevented) { // drag happened, ignore click https://github.com/mbostock/d3/wiki/Drag-Behavior#on return; @@ -766,10 +749,7 @@ function GraphView(spec) { .attr("r", function(d) { return 10; }) - .attr("display", function(d) { - return urlImage(d['image-url']) ? "none" : ""; - }) - .on("click", node_click_handler); + .on("click", node__click_handler); circle.append("svg:image") .attr("class", "status graph") .attr('x', -7) |
