minor fixes networkmaps
Former-commit-id: 85dda0470280e1f0cf142f7393f1492c61f42c6b
This commit is contained in:
parent
511295f1c6
commit
2d1463ee0c
|
@ -585,10 +585,6 @@ class NetworkMap
|
|||
$this->idGroup = $this->map['id_group'];
|
||||
|
||||
switch ($this->map['source']) {
|
||||
case SOURCE_GROUP:
|
||||
$this->idGroup = $this->map['source_data'];
|
||||
break;
|
||||
|
||||
case SOURCE_TASK:
|
||||
$this->idTask = $this->map['source_data'];
|
||||
break;
|
||||
|
@ -597,6 +593,8 @@ class NetworkMap
|
|||
$this->network = $this->map['source_data'];
|
||||
break;
|
||||
|
||||
case SOURCE_GROUP:
|
||||
// Already load.
|
||||
default:
|
||||
// Ignore.
|
||||
break;
|
||||
|
@ -753,7 +751,9 @@ class NetworkMap
|
|||
// Empty map returns no data.
|
||||
$nodes = [];
|
||||
} else {
|
||||
if ($this->mapOptions['map_filter']['dont_show_subgroups'] == 'true') {
|
||||
if ($this->mapOptions['map_filter']['dont_show_subgroups'] == 'true'
|
||||
|| $this->mapOptions['map_filter']['dont_show_subgroups'] == 1
|
||||
) {
|
||||
// Show only current selected group.
|
||||
$filter['id_grupo'] = $this->idGroup;
|
||||
} else {
|
||||
|
@ -3226,7 +3226,8 @@ class NetworkMap
|
|||
enterprise_installed: enterprise_installed,
|
||||
node_radius: node_radius,
|
||||
holding_area_dimensions: networkmap_holding_area_dimensions,
|
||||
url_background_grid: url_background_grid
|
||||
url_background_grid: url_background_grid,
|
||||
font_size: '.$this->mapOptions['font_size'].'
|
||||
});
|
||||
init_drag_and_drop();
|
||||
init_minimap();
|
||||
|
|
|
@ -3968,6 +3968,10 @@ function draw_elements_graph() {
|
|||
|
||||
var font_size = node_radius / 1.5;
|
||||
|
||||
if (self.font_size) {
|
||||
font_size = self.font_size;
|
||||
}
|
||||
|
||||
node_temp
|
||||
.append("text")
|
||||
.attr("class", "node_text")
|
||||
|
|
|
@ -53,7 +53,7 @@ if ($new_networkmap) {
|
|||
$recon_task_id = 0;
|
||||
$source = 'group';
|
||||
$ip_mask = '';
|
||||
$dont_show_subgroups = false;
|
||||
$dont_show_subgroups = 0;
|
||||
$offset_x = '';
|
||||
$offset_y = '';
|
||||
$scale_z = 0.5;
|
||||
|
@ -330,7 +330,13 @@ if ($not_found) {
|
|||
$table->data['source_data_ip_mask'][1] = html_print_input_text('ip_mask', $ip_mask, '', 20, 255, true, $disabled_source);
|
||||
|
||||
$table->data['source_data_dont_show_subgroups'][0] = __('Don\'t show subgroups:');
|
||||
$table->data['source_data_dont_show_subgroups'][1] = html_print_checkbox('dont_show_subgroups', '1', $dont_show_subgroups, true, $disabled_source);
|
||||
$table->data['source_data_dont_show_subgroups'][1] = html_print_checkbox(
|
||||
'dont_show_subgroups',
|
||||
'1',
|
||||
$dont_show_subgroups,
|
||||
true,
|
||||
$disabled_source
|
||||
);
|
||||
|
||||
$methods = [
|
||||
'twopi' => 'radial',
|
||||
|
|
|
@ -76,7 +76,10 @@ if (enterprise_installed()) {
|
|||
|
||||
$method = (string) get_parameter('method', 'fdp');
|
||||
|
||||
$dont_show_subgroups = 0;
|
||||
$dont_show_subgroups = (int) get_parameter_checkbox(
|
||||
'dont_show_subgroups',
|
||||
0
|
||||
);
|
||||
$node_radius = (int) get_parameter('node_radius', 40);
|
||||
$description = get_parameter('description', '');
|
||||
|
||||
|
|
Loading…
Reference in New Issue