From 3f06e9626a01c80e49bcb5898a7a8cd43c2991ff Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 22 Dec 2014 13:57:22 +0200 Subject: client: use update_node for svg_input node name editing --- src/client/rz_core.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/client/rz_core.js') diff --git a/src/client/rz_core.js b/src/client/rz_core.js index 7ec19692..2361b45f 100644 --- a/src/client/rz_core.js +++ b/src/client/rz_core.js @@ -78,10 +78,13 @@ var svgInput = (function() { if (d.hasOwnProperty('__src')) { graph.editLink(d.__src.id, d.__dst.id, newname); } else { - graph.editName(d.id, newname); + graph.update_node(d, {name: newname}, function() { + rz_bus.names.push([newname]); + update_view__graph(true); + }); + // TODO - 'updating' graphic + // TODO - use promises to make A follows B readable. } - rz_bus.names.push([newname]); - update_view__graph(true); } hide(); } -- cgit v1.3.1