diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 22c6c4d8d4..bc69c22351 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -304,7 +304,7 @@ function update_button_palette_callback() { alert('Undefined height'); return false; } - + $("#text_" + idItem).html(values['label']); if(values['show_statistics'] == 1){ @@ -2899,9 +2899,6 @@ function updateDB(type, idElement , values, event) { } function copyDB(idItem) { - - console.log(idItem); - metaconsole = $("input[name='metaconsole']").val(); parameter = Array(); @@ -3357,8 +3354,6 @@ function eventsItems(drag) { } } else{ - console.log('Dragstart'); - multiDragStart(event); } @@ -3375,8 +3370,6 @@ function eventsItems(drag) { updateDB(selectedItem, idItem, values, 'dragstop'); } else{ - - console.log('Dragstop'); multidragStop(event); } }); @@ -3464,10 +3457,6 @@ function eventsItems(drag) { break; } } - else{ - console.log('Drag'); - - } }); } diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index e854a31c49..cc869131a4 100755 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -515,13 +515,13 @@ switch ($action) { $values['id_agent'] = $id_agent; } } - else if (!empty($id_agent)) { - $values['id_agent'] = $id_agent; - } else if ($agent !== null) { $id_agent = agents_get_agent_id($agent); $values['id_agent'] = $id_agent; } + else { + $values['id_agent'] = $id_agent; + } if ($id_module !== null) { $values['id_agente_modulo'] = $id_module; } diff --git a/pandora_console/include/functions_visual_map_editor.php b/pandora_console/include/functions_visual_map_editor.php index 54db2d8008..1d08758b84 100755 --- a/pandora_console/include/functions_visual_map_editor.php +++ b/pandora_console/include/functions_visual_map_editor.php @@ -556,12 +556,11 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) { ''; $form_items_advance['map_linked_row'] = array(); - $form_items_advance['map_linked_row']['items'] = array( - 'group_item', 'static_graph', 'percentile_bar', - 'percentile_item', 'module_graph', 'simple_value', - 'icon', 'label', 'datos'); + $form_items_advance['map_linked_row']['items'] = array('static_graph', 'label'); $form_items_advance['map_linked_row']['html'] = ''. - __('Map linked') . '' . + __('Map linked') . ui_print_help_tip ( + __("If a parent visual console is selected here, an agent or module cannot be selected and will be removed if a previous selection was done."), true) . + '' . '' . html_print_select_from_sql ( 'SELECT id, name FROM tlayout @@ -747,4 +746,18 @@ function visual_map_editor_print_hack_translate_strings() { echo ''; } -?> \ No newline at end of file +?> + + \ No newline at end of file