#11098 The Create agent module button is enabled
This commit is contained in:
parent
96305c9528
commit
9ab9087377
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
require_once $config['homedir'].'/include/class/CredentialStore.class.php';
|
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';
|
require_once $config['homedir'].'/include/functions_snmp_browser.php';
|
||||||
$snmp_browser_path = (is_metaconsole() === true) ? '../../' : '';
|
$snmp_browser_path = (is_metaconsole() === true) ? '../../' : '';
|
||||||
$snmp_browser_path .= 'include/javascript/pandora_snmp_browser.js';
|
$snmp_browser_path .= 'include/javascript/pandora_snmp_browser.js';
|
||||||
|
|
|
@ -258,7 +258,7 @@ function snmpGet(oid) {
|
||||||
var ajax_url = $("#hidden-ajax_url").val();
|
var ajax_url = $("#hidden-ajax_url").val();
|
||||||
var server_to_exec = $("#server_to_exec").val();
|
var server_to_exec = $("#server_to_exec").val();
|
||||||
var target_port = $("#target_port").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
|
// Check for a custom action
|
||||||
var custom_action = $("#hidden-custom_action").val();
|
var custom_action = $("#hidden-custom_action").val();
|
||||||
|
|
|
@ -93,7 +93,9 @@ ui_print_standard_header(
|
||||||
);
|
);
|
||||||
|
|
||||||
// SNMP tree container.
|
// 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.
|
// Div for modal.
|
||||||
echo '<div id="modal" style="display:none"></div>';
|
echo '<div id="modal" style="display:none"></div>';
|
||||||
|
@ -668,7 +670,7 @@ function show_add_module() {
|
||||||
|
|
||||||
$("#snmp_create_module").append(input);
|
$("#snmp_create_module").append(input);
|
||||||
});
|
});
|
||||||
|
console.log(input);
|
||||||
//Submit form to agent module url.
|
//Submit form to agent module url.
|
||||||
$("#snmp_create_module").attr(
|
$("#snmp_create_module").attr(
|
||||||
"action",
|
"action",
|
||||||
|
|
Loading…
Reference in New Issue