#11098 The Create agent module button is enabled

This commit is contained in:
Jorge Rincon 2023-05-04 16:48:20 +02:00
parent 96305c9528
commit 9ab9087377
3 changed files with 6 additions and 3 deletions

View File

@ -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';

View File

@ -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();

View File

@ -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 '<div id="modal" style="display:none"></div>';
@ -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",