From 7a35b6412e66dfd30f43fa25a135356c712b9b8c Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 14 Apr 2016 09:34:05 +0200 Subject: [PATCH] New maps in progress... (fixed "move modulegroups") --- pandora_console/include/class/Map.class.php | 1 + pandora_console/include/javascript/map/MapController.js | 1 + pandora_console/include/javascript/map/NetworkmapController.js | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/Map.class.php b/pandora_console/include/class/Map.class.php index 7bb98a65a5..c1671a06d7 100644 --- a/pandora_console/include/class/Map.class.php +++ b/pandora_console/include/class/Map.class.php @@ -217,6 +217,7 @@ abstract class Map { $contants["ITEM_TYPE_MODULE_NETWORKMAP"] = ITEM_TYPE_MODULE_NETWORKMAP; $contants["ITEM_TYPE_EDGE_NETWORKMAP"] = ITEM_TYPE_EDGE_NETWORKMAP; $contants["ITEM_TYPE_FICTIONAL_NODE"] = ITEM_TYPE_FICTIONAL_NODE; + $contants["ITEM_TYPE_MODULEGROUP_NETWORKMAP"] = ITEM_TYPE_MODULEGROUP_NETWORKMAP; $contants["AGENT_MODULE_STATUS_ALL"] = AGENT_MODULE_STATUS_ALL; $contants["AGENT_MODULE_STATUS_CRITICAL_BAD"] = AGENT_MODULE_STATUS_CRITICAL_BAD; diff --git a/pandora_console/include/javascript/map/MapController.js b/pandora_console/include/javascript/map/MapController.js index 6b40827500..dd65ac0977 100644 --- a/pandora_console/include/javascript/map/MapController.js +++ b/pandora_console/include/javascript/map/MapController.js @@ -1644,6 +1644,7 @@ MapController.prototype.is_draggable = function(node) { switch (node.type) { case ITEM_TYPE_MODULE_NETWORKMAP: + case ITEM_TYPE_MODULEGROUP_NETWORKMAP: case ITEM_TYPE_AGENT_NETWORKMAP: case ITEM_TYPE_FICTIONAL_NODE: return_var = true; diff --git a/pandora_console/include/javascript/map/NetworkmapController.js b/pandora_console/include/javascript/map/NetworkmapController.js index 9f45d1b961..b6a0d53a28 100644 --- a/pandora_console/include/javascript/map/NetworkmapController.js +++ b/pandora_console/include/javascript/map/NetworkmapController.js @@ -133,7 +133,6 @@ NetworkmapController.prototype.filter_only_agents = function(node) { } } - /** * Function get_arrow_AMMA * Return array (arrow)