summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-12-07 19:46:03 +0200
committerAlon Levy <alon@pobox.com>2014-12-16 10:59:14 +0200
commit9d8a9524c33cafbf8525d3c0b901ae007dc05694 (patch)
tree89f0e0e5d48096aac3bf4406e0820ae9e081fdbd
parentce7d10b880baf92fd447aaedf22f981d3a8bb277 (diff)
findCoordinates() - rm unused state param
-rw-r--r--src/model/graph.js8
-rw-r--r--src/textanalysis.ui.js4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index cf632815..abff1b2a 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -400,11 +400,11 @@ function Graph() {
return this._editProperty(id, state, 'state', newstate);
}
- this.findCoordinates = function(id, type) {
- var index = findNode(id, type);
+ this.findCoordinates = function(id) {
+ var n = find_node__by_id(id);
if ((index !== undefined)) {
- $('.typeselection').css('top', index.y - 90);
- $('.typeselection').css('left', index.x - 230);
+ $('.typeselection').css('top', n.y - 90);
+ $('.typeselection').css('left', n.x - 230);
}
}
diff --git a/src/textanalysis.ui.js b/src/textanalysis.ui.js
index a30fe43d..5f5718bd 100644
--- a/src/textanalysis.ui.js
+++ b/src/textanalysis.ui.js
@@ -102,11 +102,11 @@ function changeType(arg) {
if (arg === 'up') {
rz_core.graph.editType(id, null, nodetype);
typeselection.showChosenType(nodetype);
- rz_core.graph.findCoordinates(id, null);
+ rz_core.graph.findCoordinates(id);
} else {
rz_core.graph.editType(id, null, nodetype);
typeselection.showChosenType(nodetype);
- rz_core.graph.findCoordinates(id, null);
+ rz_core.graph.findCoordinates(id);
}
rz_core.update_view__graph(true);
}