diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index db2c627eb7..501e2b394d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-02-23 Miguel de Dios + + * include/javascript/pandora_modules.js: fixed the disabled button snmp when + change any parameter of snmp. + + Fixes: #3168685 + 2011-02-03 Javier Lanz * extensions/agents_modules.php: Fixed an error in the header of diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 27a43027da..ddd6570775 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -181,11 +181,73 @@ function configure_modules_form () { $("#text-ip_target").keyup (function () { if (this.value != '') { $("#button-snmp_walk").enable (); - } else { + } + else { $("#button-snmp_walk").disable (); } }); + $("#text-tcp_port").keyup (function () { + if (this.value != '') { + $("#button-snmp_walk").enable (); + } + else { + $("#button-snmp_walk").disable (); + } + }); + + $("#text-snmp_community").keyup (function () { + if (this.value != '') { + $("#button-snmp_walk").enable (); + } + else { + $("#button-snmp_walk").disable (); + } + }); + + $("#snmp_version").change(function () { + $("#button-snmp_walk").enable (); + }); + + $("#text-snmp3_auth_user").keyup (function () { + if (this.value != '') { + $("#button-snmp_walk").enable (); + } + else { + $("#button-snmp_walk").disable (); + } + }); + + $("#text-snmp3_auth_pass").keyup (function () { + if (this.value != '') { + $("#button-snmp_walk").enable (); + } + else { + $("#button-snmp_walk").disable (); + } + }); + + $("#snmp3_privacy_method").change(function () { + $("#button-snmp_walk").enable (); + }); + + $("#text-snmp3_privacy_pass").keyup (function () { + if (this.value != '') { + $("#button-snmp_walk").enable (); + } + else { + $("#button-snmp_walk").disable (); + } + }); + + $("#snmp3_auth_method").change(function () { + $("#button-snmp_walk").enable (); + }); + + $("#snmp3_security_level").change(function () { + $("#button-snmp_walk").enable (); + }); + $("#button-snmp_walk").click (function () { $(this).disable (); $("#oid_loading").show ();