From c36b177e05426c9a37e905c7eb65700cf9b69478 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 11 Feb 2015 17:55:35 +0200 Subject: client: remove setting type change suggestion location via graph.findCoordinates --- src/client/model/graph.js | 9 --------- src/client/textanalysis.ui.js | 1 - 2 files changed, 10 deletions(-) (limited to 'src/client') diff --git a/src/client/model/graph.js b/src/client/model/graph.js index d163e406..3f9e89ab 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -535,15 +535,6 @@ function Graph(spec) { return true; } - this.findCoordinates = function(id) { - var n = find_node__by_id(id); - - if (n !== undefined) { - $('.typeselection').css('top', n.y - 90); - $('.typeselection').css('left', n.x - 230); - } - } - this.links_rm = function(links) { var ids = links.map(function (link) { util.assert(link.id !== undefined, 'bug: link without an id'); diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index b330d98b..91aea1de 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -112,7 +112,6 @@ function changeType(arg) { rz_core.edit_graph.editType(id, nodetype); typeselection.showChosenType(nodetype); - rz_core.edit_graph.findCoordinates(id); textanalysis.set_type(name, nodetype); } -- cgit v1.3.1