Working in the arrows.

This commit is contained in:
mdtrooper 2016-04-06 13:30:24 +02:00
parent fafe3b4eae
commit dff1b8593c

View File

@ -319,10 +319,7 @@ MapController.prototype.get_edges_from_node = function(id_graph) {
MapController.prototype.update_edges_from_clean_arrows = function(clean_arrows) { MapController.prototype.update_edges_from_clean_arrows = function(clean_arrows) {
newEdges = []; newEdges = [];
clean_arrows.forEach(function(arrow, index) { clean_arrows.forEach(function(arrow, index) {
newEdges[index] = []; newEdges[index] = arrow;
newEdges[index]['from'] = arrow['from']['graph_id'];
newEdges[index]['to'] = arrow['to']['graph_id'];
newEdges[index]['graph_id'] = arrow['graph_id'];
}); });
edges = newEdges; edges = newEdges;
} }
@ -2436,7 +2433,6 @@ MapController.prototype.editNode = function(self, target) {
closeOnEscape: true closeOnEscape: true
}); });
$("#edit_node_dialog_" + node_id).dialog("open"); $("#edit_node_dialog_" + node_id).dialog("open");
} }
}); });
} }