From 16db341e2a6722715cbcb8aafec32c2f68dabab6 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 4 Dec 2014 17:29:50 +0200 Subject: fix regression with too many auto completion suggestions --- src/model/graph.js | 2 -- src/rz_core.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/model/graph.js b/src/model/graph.js index 5268a007..d8601905 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -353,7 +353,6 @@ function Graph() { } else { index.name = new_name; } - rz_bus.names.push([new_name]); } this.editDates = function(id, type, start, end) { @@ -595,7 +594,6 @@ function Graph() { data.links.forEach(function(link) { that.addLink(link.__src, link.__dst, link.name, "perm"); }); - rz_bus.names.push(added_names); this.clear_history(); } diff --git a/src/rz_core.js b/src/rz_core.js index 176f2855..6eaeb557 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -89,6 +89,7 @@ var svgInput = (function() { } else { graph.editName(d.id, newname); } + rz_bus.names.push([newname]); update_view__graph(true); } } -- cgit v1.3.1