New maps in progress... (Added drag, delete and select functions to policie and group node)
This commit is contained in:
parent
dc3da8babe
commit
b3dbcdad17
|
@ -225,6 +225,8 @@ abstract class Map {
|
||||||
$contants["ITEM_TYPE_EDGE_NETWORKMAP"] = ITEM_TYPE_EDGE_NETWORKMAP;
|
$contants["ITEM_TYPE_EDGE_NETWORKMAP"] = ITEM_TYPE_EDGE_NETWORKMAP;
|
||||||
$contants["ITEM_TYPE_FICTIONAL_NODE"] = ITEM_TYPE_FICTIONAL_NODE;
|
$contants["ITEM_TYPE_FICTIONAL_NODE"] = ITEM_TYPE_FICTIONAL_NODE;
|
||||||
$contants["ITEM_TYPE_MODULEGROUP_NETWORKMAP"] = ITEM_TYPE_MODULEGROUP_NETWORKMAP;
|
$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_ALL"] = AGENT_MODULE_STATUS_ALL;
|
||||||
$contants["AGENT_MODULE_STATUS_CRITICAL_BAD"] = AGENT_MODULE_STATUS_CRITICAL_BAD;
|
$contants["AGENT_MODULE_STATUS_CRITICAL_BAD"] = AGENT_MODULE_STATUS_CRITICAL_BAD;
|
||||||
|
|
|
@ -1688,6 +1688,8 @@ MapController.prototype.is_draggable = function(node) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ITEM_TYPE_AGENT_NETWORKMAP:
|
case ITEM_TYPE_AGENT_NETWORKMAP:
|
||||||
|
case ITEM_TYPE_GROUP_NETWORKMAP:
|
||||||
|
case ITEM_TYPE_POLICY_NETWORKMAP:
|
||||||
case ITEM_TYPE_FICTIONAL_NODE:
|
case ITEM_TYPE_FICTIONAL_NODE:
|
||||||
return_var = true;
|
return_var = true;
|
||||||
break;
|
break;
|
||||||
|
@ -1726,6 +1728,8 @@ MapController.prototype.is_selecty = function(node) {
|
||||||
switch (node.type) {
|
switch (node.type) {
|
||||||
case ITEM_TYPE_AGENT_NETWORKMAP:
|
case ITEM_TYPE_AGENT_NETWORKMAP:
|
||||||
case ITEM_TYPE_FICTIONAL_NODE:
|
case ITEM_TYPE_FICTIONAL_NODE:
|
||||||
|
case ITEM_TYPE_GROUP_NETWORKMAP:
|
||||||
|
case ITEM_TYPE_POLICY_NETWORKMAP:
|
||||||
return_var = true;
|
return_var = true;
|
||||||
break;
|
break;
|
||||||
case ITEM_TYPE_MODULE_NETWORKMAP:
|
case ITEM_TYPE_MODULE_NETWORKMAP:
|
||||||
|
@ -1765,6 +1769,8 @@ MapController.prototype.is_delety = function(node) {
|
||||||
switch (node.type) {
|
switch (node.type) {
|
||||||
case ITEM_TYPE_AGENT_NETWORKMAP:
|
case ITEM_TYPE_AGENT_NETWORKMAP:
|
||||||
case ITEM_TYPE_FICTIONAL_NODE:
|
case ITEM_TYPE_FICTIONAL_NODE:
|
||||||
|
case ITEM_TYPE_GROUP_NETWORKMAP:
|
||||||
|
case ITEM_TYPE_POLICY_NETWORKMAP:
|
||||||
return_var = true;
|
return_var = true;
|
||||||
break;
|
break;
|
||||||
case ITEM_TYPE_MODULE_NETWORKMAP:
|
case ITEM_TYPE_MODULE_NETWORKMAP:
|
||||||
|
|
Loading…
Reference in New Issue