New maps in progress... (Added drag, delete and select functions to policie and group node)

This commit is contained in:
Arturo Gonzalez 2016-04-20 09:16:16 +02:00
parent dc3da8babe
commit b3dbcdad17
2 changed files with 8 additions and 0 deletions

View File

@ -225,6 +225,8 @@ abstract class Map {
$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["ITEM_TYPE_GROUP_NETWORKMAP"] = ITEM_TYPE_GROUP_NETWORKMAP;
$contants["ITEM_TYPE_POLICY_NETWORKMAP"] = ITEM_TYPE_POLICY_NETWORKMAP;
$contants["AGENT_MODULE_STATUS_ALL"] = AGENT_MODULE_STATUS_ALL;
$contants["AGENT_MODULE_STATUS_CRITICAL_BAD"] = AGENT_MODULE_STATUS_CRITICAL_BAD;

View File

@ -1688,6 +1688,8 @@ MapController.prototype.is_draggable = function(node) {
}
break;
case ITEM_TYPE_AGENT_NETWORKMAP:
case ITEM_TYPE_GROUP_NETWORKMAP:
case ITEM_TYPE_POLICY_NETWORKMAP:
case ITEM_TYPE_FICTIONAL_NODE:
return_var = true;
break;
@ -1726,6 +1728,8 @@ MapController.prototype.is_selecty = function(node) {
switch (node.type) {
case ITEM_TYPE_AGENT_NETWORKMAP:
case ITEM_TYPE_FICTIONAL_NODE:
case ITEM_TYPE_GROUP_NETWORKMAP:
case ITEM_TYPE_POLICY_NETWORKMAP:
return_var = true;
break;
case ITEM_TYPE_MODULE_NETWORKMAP:
@ -1765,6 +1769,8 @@ MapController.prototype.is_delety = function(node) {
switch (node.type) {
case ITEM_TYPE_AGENT_NETWORKMAP:
case ITEM_TYPE_FICTIONAL_NODE:
case ITEM_TYPE_GROUP_NETWORKMAP:
case ITEM_TYPE_POLICY_NETWORKMAP:
return_var = true;
break;
case ITEM_TYPE_MODULE_NETWORKMAP: