Fixed the deletion arrows in networkmap.

This commit is contained in:
mdtrooper 2016-04-07 16:36:45 +02:00
parent 479e67dfa4
commit bf59e5b17b
2 changed files with 22 additions and 2 deletions

View File

@ -1908,6 +1908,26 @@ NetworkmapController.prototype.cache_is_element = function(element) {
}
}
/**
* Function getArrows
* Return array[id_arrow]
* This function returns the arrows of a node
*/
NetworkmapController.prototype.getArrows = function(id_node) {
var self = this;
var return_var = [];
edges.forEach(function(edge, index) {
if (("node_" + edge['to']['graph_id']) == id_node
|| ("node_" + edge['from']['graph_id']) == id_node) {
return_var[index] = edge["graph_id"];
}
});
return return_var;
}
function update_node(data_graph_id) {
node_id = "node_" + data_graph_id;