diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-22 13:57:22 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-22 13:57:22 +0200 |
| commit | 3f06e9626a01c80e49bcb5898a7a8cd43c2991ff (patch) | |
| tree | a3d2596e5344a1e63b21cb9f4528373c4f2b78a6 /src/client/rz_core.js | |
| parent | 0196f6c212bb1937445848a22880e6cbd9a22a86 (diff) | |
client: use update_node for svg_input node name editing
Diffstat (limited to 'src/client/rz_core.js')
| -rw-r--r-- | src/client/rz_core.js | 9 |
1 files changed, 6 insertions, 3 deletions
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(); } |
