summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-04 17:29:50 +0200
committerAlon Levy <alon@pobox.com>2014-12-04 17:29:50 +0200
commit16db341e2a6722715cbcb8aafec32c2f68dabab6 (patch)
tree1c76d432ddf54a82c19065ae745cb3080e2b7e16
parent4fdac40d99e8207adf4974606ad3c3837d78ac06 (diff)
fix regression with too many auto completion suggestions
-rw-r--r--src/model/graph.js2
-rw-r--r--src/rz_core.js1
2 files changed, 1 insertions, 2 deletions
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);
}
}