From 355e1e89e63174711fe9daff95f5d6ebceebda13 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 23 Feb 2011 11:22:47 +0000 Subject: [PATCH] 2011-02-23 Miguel de Dios * include/javascript/pandora_modules.js: fixed the disabled button snmp when change any parameter of snmp. Fixes: #3168685 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3997 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++ .../include/javascript/pandora_modules.js | 64 ++++++++++++++++++- 2 files changed, 70 insertions(+), 1 deletion(-) 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 ();