diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index 464fff7c67..b1a120d4da 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -28,6 +28,7 @@ global $config; require_once $config['homedir'].'/include/class/CredentialStore.class.php'; +require_once $config['homedir'].'/operation/snmpconsole/snmp_browser.php'; require_once $config['homedir'].'/include/functions_snmp_browser.php'; $snmp_browser_path = (is_metaconsole() === true) ? '../../' : ''; $snmp_browser_path .= 'include/javascript/pandora_snmp_browser.js'; diff --git a/pandora_console/include/javascript/pandora_snmp_browser.js b/pandora_console/include/javascript/pandora_snmp_browser.js index 5f478e2947..c8dc331ff4 100644 --- a/pandora_console/include/javascript/pandora_snmp_browser.js +++ b/pandora_console/include/javascript/pandora_snmp_browser.js @@ -258,7 +258,7 @@ function snmpGet(oid) { var ajax_url = $("#hidden-ajax_url").val(); var server_to_exec = $("#server_to_exec").val(); var target_port = $("#target_port").val(); - var print_create_agent_module = $("#print_create_agent_module").val(); + var print_create_agent_module = true; // Check for a custom action var custom_action = $("#hidden-custom_action").val(); diff --git a/pandora_console/operation/snmpconsole/snmp_browser.php b/pandora_console/operation/snmpconsole/snmp_browser.php index 27768a5646..cb5306f291 100644 --- a/pandora_console/operation/snmpconsole/snmp_browser.php +++ b/pandora_console/operation/snmpconsole/snmp_browser.php @@ -93,7 +93,9 @@ ui_print_standard_header( ); // SNMP tree container. -snmp_browser_print_container(false, '100%', '60%', '', true, true); +if (!isset($_GET['tab'])) { + snmp_browser_print_container(false, '100%', '60%', '', true, true); +} // Div for modal. echo '
'; @@ -668,7 +670,7 @@ function show_add_module() { $("#snmp_create_module").append(input); }); - +console.log(input); //Submit form to agent module url. $("#snmp_create_module").attr( "action",