mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
Merge branch '1070-disable-interface-links-in-fictional-nodes-dev' into 'develop'
Removed interface link function in fictional nodes See merge request !644
This commit is contained in:
commit
6bf85a0789
@ -312,7 +312,7 @@ function networkmap_db_node_to_js_node($node, &$count, &$count_item_holding_area
|
|||||||
|
|
||||||
$item = array();
|
$item = array();
|
||||||
$item['id'] = $count;
|
$item['id'] = $count;
|
||||||
|
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
enterprise_include_once('include/functions_pandora_networkmap.php');
|
enterprise_include_once('include/functions_pandora_networkmap.php');
|
||||||
$item['id_db'] = $node['id_in_db'];
|
$item['id_db'] = $node['id_in_db'];
|
||||||
@ -331,6 +331,9 @@ function networkmap_db_node_to_js_node($node, &$count, &$count_item_holding_area
|
|||||||
$item['id_agent'] = (int)$node['style']['id_agent'];
|
$item['id_agent'] = (int)$node['style']['id_agent'];
|
||||||
$item['id_module'] = (int)$node['source_data'];
|
$item['id_module'] = (int)$node['source_data'];
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$item['type'] = 3;
|
||||||
|
}
|
||||||
|
|
||||||
$item['fixed'] = true;
|
$item['fixed'] = true;
|
||||||
$item['x'] = (int)$node['x'];
|
$item['x'] = (int)$node['x'];
|
||||||
|
@ -1589,8 +1589,14 @@ function show_menu(item, data) {
|
|||||||
name: interface_link_add,
|
name: interface_link_add,
|
||||||
icon: "interface_link_children",
|
icon: "interface_link_children",
|
||||||
disabled : function() {
|
disabled : function() {
|
||||||
|
console.log(data);
|
||||||
if (enterprise_installed) {
|
if (enterprise_installed) {
|
||||||
return false;
|
if (data.type == 3) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return true;
|
return true;
|
||||||
@ -1657,7 +1663,12 @@ function show_menu(item, data) {
|
|||||||
icon: "interface_link_parent",
|
icon: "interface_link_parent",
|
||||||
disabled : function() {
|
disabled : function() {
|
||||||
if (enterprise_installed) {
|
if (enterprise_installed) {
|
||||||
return false;
|
if (data.type == 3) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return true;
|
return true;
|
||||||
@ -1681,7 +1692,12 @@ function show_menu(item, data) {
|
|||||||
icon: "interface_link_cancel",
|
icon: "interface_link_cancel",
|
||||||
disabled : function() {
|
disabled : function() {
|
||||||
if (enterprise_installed) {
|
if (enterprise_installed) {
|
||||||
return false;
|
if (data.type == 3) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user