mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
New maps in progress... (Fixed module dragg and show)
This commit is contained in:
parent
83ff20b809
commit
008d243f85
@ -1586,7 +1586,7 @@ MapController.prototype.events_for_nodes = function(id_node) {
|
|||||||
$.each(nodes, function(i, node) {
|
$.each(nodes, function(i, node) {
|
||||||
if (!self.is_draggable(node))
|
if (!self.is_draggable(node))
|
||||||
return 1; // Continue
|
return 1; // Continue
|
||||||
|
|
||||||
var status_selection =
|
var status_selection =
|
||||||
self.get_status_selection_node(node.graph_id);
|
self.get_status_selection_node(node.graph_id);
|
||||||
|
|
||||||
@ -1643,6 +1643,7 @@ MapController.prototype.is_draggable = function(node) {
|
|||||||
var return_var = false;
|
var return_var = false;
|
||||||
|
|
||||||
switch (node.type) {
|
switch (node.type) {
|
||||||
|
case ITEM_TYPE_MODULE_NETWORKMAP:
|
||||||
case ITEM_TYPE_AGENT_NETWORKMAP:
|
case ITEM_TYPE_AGENT_NETWORKMAP:
|
||||||
case ITEM_TYPE_FICTIONAL_NODE:
|
case ITEM_TYPE_FICTIONAL_NODE:
|
||||||
return_var = true;
|
return_var = true;
|
||||||
|
@ -117,9 +117,16 @@ NetworkmapController.prototype.init_map = function() {
|
|||||||
NetworkmapController.prototype.filter_only_agents = function(node) {
|
NetworkmapController.prototype.filter_only_agents = function(node) {
|
||||||
switch (node.type) {
|
switch (node.type) {
|
||||||
case ITEM_TYPE_EDGE_NETWORKMAP:
|
case ITEM_TYPE_EDGE_NETWORKMAP:
|
||||||
case ITEM_TYPE_MODULE_NETWORKMAP:
|
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
case ITEM_TYPE_MODULE_NETWORKMAP:
|
||||||
|
if (filter['show_modules']) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user