mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Fixed the deletion arrows in networkmap.
This commit is contained in:
parent
479e67dfa4
commit
bf59e5b17b
@ -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) {
|
function update_node(data_graph_id) {
|
||||||
node_id = "node_" + data_graph_id;
|
node_id = "node_" + data_graph_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user