From dff1b8593c32e2498d3339f4c1f95b31aa391a57 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 6 Apr 2016 13:30:24 +0200 Subject: [PATCH] Working in the arrows. --- pandora_console/include/javascript/map/MapController.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pandora_console/include/javascript/map/MapController.js b/pandora_console/include/javascript/map/MapController.js index 8427673dc4..31a3522862 100644 --- a/pandora_console/include/javascript/map/MapController.js +++ b/pandora_console/include/javascript/map/MapController.js @@ -319,10 +319,7 @@ MapController.prototype.get_edges_from_node = function(id_graph) { MapController.prototype.update_edges_from_clean_arrows = function(clean_arrows) { newEdges = []; clean_arrows.forEach(function(arrow, index) { - newEdges[index] = []; - newEdges[index]['from'] = arrow['from']['graph_id']; - newEdges[index]['to'] = arrow['to']['graph_id']; - newEdges[index]['graph_id'] = arrow['graph_id']; + newEdges[index] = arrow; }); edges = newEdges; } @@ -2436,7 +2433,6 @@ MapController.prototype.editNode = function(self, target) { closeOnEscape: true }); $("#edit_node_dialog_" + node_id).dialog("open"); - } }); }