mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Working in the arrows.
This commit is contained in:
parent
f7deed5508
commit
fafe3b4eae
@ -28,6 +28,14 @@ if (is_ajax ()) {
|
||||
$printEditNodeTable = (bool)get_parameter('printEditNodeTable', 0);
|
||||
$printEditMapTable = (bool)get_parameter('printEditMapTable', 0);
|
||||
$refresh_nodes_open = (bool)get_parameter('refresh_nodes_open', 0);
|
||||
$refresh_arrows_open = (bool)get_parameter('refresh_arrows_open', 0);
|
||||
|
||||
if ($refresh_arrows_open) {
|
||||
$return = array();
|
||||
|
||||
echo json_encode($return);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($refresh_nodes_open) {
|
||||
$return = array();
|
||||
|
@ -1626,4 +1626,18 @@ NetworkmapController.prototype.refresh_nodes = function() {
|
||||
|
||||
NetworkmapController.prototype.refresh_arrows = function() {
|
||||
var self = this;
|
||||
|
||||
var params = {};
|
||||
params["refresh_arrows_open"] = 1;
|
||||
params["id_map"] = self._id;
|
||||
params["page"] = "include/ajax/map.ajax2";
|
||||
var agent_nodes = $.grep(nodes,
|
||||
function(node) {
|
||||
if (node['type'] == 0) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user