summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-06 11:43:16 +0300
committerAlon Levy <alon@pobox.com>2015-04-06 11:43:16 +0300
commit3ae06034b88e7a9887a1c9fb2f5e623cd9469669 (patch)
treef4fcf31e491ded0f747538af683322bdad0730ba /src/client/view/graph_view.js
parentcadfc79763a9c5c7473ca8ab764a0f9c56b125c1 (diff)
client: property tab cleanup; resolve #396
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 234ed976..3a3bb6a4 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -25,8 +25,8 @@
* which resulted in overly complex (read: undefined/buggy) code.
*/
-define(['d3', 'Bacon', 'consts', 'util', 'view/selection', 'view/helpers', 'model/diff', 'view/view', 'view/bubble', 'model/types', 'view/layouts'],
-function(d3 , Bacon, consts, util , selection , view_helpers, model_diff , view, view_bubble, model_types, view_layouts) {
+define(['d3', 'Bacon', 'consts', 'util', 'view/selection', 'view/helpers', 'model/diff', 'view/item_info', 'view/bubble', 'model/types', 'view/layouts'],
+function(d3 , Bacon, consts, util , selection , view_helpers, model_diff , item_info, view_bubble, model_types, view_layouts) {
"use strict"
@@ -287,7 +287,7 @@ function GraphView(spec) {
function showNodeInfo(node) {
util.assert(!temporary, "cannot showNodeInfo on a temporary graph");
- view.node_info.show(graph, node)
+ item_info.show(graph, node)
}
function dragstarted(d) {
@@ -510,13 +510,7 @@ function GraphView(spec) {
// after this events bubbles to the svg element
return;
}
- var that = this;
-
- view.link_info.on_delete(function () {
- view.link_info.hide();
- graph.links__delete([that.link.id]);
- });
- view.link_info.show(d);
+ item_info.show(graph, d, ['name']);
(d3.event.shiftKey? selection.invert_link : selection.select_link)(this.link);
});