diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index c1c9159134..f4aefb957a 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -936,7 +936,7 @@ $switchButtons[] = html_print_radio_button_extended( ); $tableAdvancedAgent->data['module_definition'][] = html_print_label_input_block( - __('Module definition').ui_print_help_tip(__('Three working modes can be selected for module definition. Learning mode: Default mode, if an XML arrives with new modules, they will be created automatically; it is a learning behavior. Normal mode: If an XML arrives with new modules, they will only be created if they are previously declared in the Console. Autodisable mode: It is the same as learning mode, but if all modules go into unknown, the agent will be disabled until information arrives again.'), true), + __('Module definition').ui_print_help_tip(__('Three working modes can be selected for module definition. Learning mode: Default mode, if an XML arrives with new modules, they will be created automatically; it is a learning behavior. Normal mode: If an XML arrives with new modules, they will only be created if they are previously declared in the Console. Autodisable mode: It is the same as learning mode, but if all modules go into unknown, the agent will be disabled until information arrives again.'), true).clippy_context_help('modules_not_learning_mode'), html_print_div( [ 'class' => 'switch_radio_button', @@ -1297,7 +1297,6 @@ if ($modo == 0) { echo ""; } -echo clippy_context_help('modules_not_learning_mode'); echo ''; if ($new_agent === false) { @@ -1434,15 +1433,15 @@ ui_require_jquery_file('bgiframe'); function show_modules_not_learning_mode_context_help() { if ($("input[name='modo'][value=0]").is(':checked')) { - $("#modules_not_learning_mode_context_help").show().css('padding-right','8px'); - } - else { - $("#modules_not_learning_mode_context_help").hide(); + $(".div-modules_not_learning_mode").show(); + } else { + $(".div-modules_not_learning_mode").hide(); } } $(document).ready (function() { + show_modules_not_learning_mode_context_help(); var $id_agent = ''; var previous_primary_group_select; diff --git a/pandora_console/include/functions_clippy.php b/pandora_console/include/functions_clippy.php index 8505e0bf09..a20cbef290 100644 --- a/pandora_console/include/functions_clippy.php +++ b/pandora_console/include/functions_clippy.php @@ -317,6 +317,11 @@ function clippy_context_help($help=null) $title = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['title']; $intro = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['intro']; $img = $clippy_data_configuration_module['tours']['data_configuration_module']['steps'][0]['img']; + } else if ($help === 'modules_not_learning_mode') { + $clippy_modules_not_learning_mode = clippy_modules_not_learning_mode(); + $title = $clippy_modules_not_learning_mode['tours']['modules_not_learning_mode']['steps'][0]['title']; + $intro = $clippy_modules_not_learning_mode['tours']['modules_not_learning_mode']['steps'][0]['intro']; + $img = $clippy_modules_not_learning_mode['tours']['modules_not_learning_mode']['steps'][0]['img']; } else { $img = html_print_image( 'images/info-warning.svg', @@ -325,7 +330,7 @@ function clippy_context_help($help=null) ); } - $return = $code.'
+ $return = $code.'