From 86a9261d7610801b4fa6203ada2507c5819f3e29 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 11 Mar 2014 12:44:10 +0000 Subject: [PATCH] 2014-03-11 Miguel de Dios * include/javascript/pandora_modules.js: fixed the javascript to load the WMI query in the form to edit the module. Incident: #598 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9555 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../include/javascript/pandora_modules.js | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 65b1703582..7ac3029f80 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2014-03-11 Miguel de Dios + + * include/javascript/pandora_modules.js: fixed the javascript to + load the WMI query in the form to edit the module. + + Incident: #598 + 2014-03-11 Miguel de Dios * operation/agentes/estado_monitores.php: fixed the length of module diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 24cc5da975..705133ed3e 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -249,10 +249,14 @@ function configure_modules_form () { period_select_update('module_interval', data["module_interval"]); } $("#text-tcp_port").attr ("value", data["tcp_port"]); - $("#textarea_tcp_send").attr ("value", js_html_entity_decode (data["tcp_send"])); - $("#textarea_tcp_rcv").attr ("value", js_html_entity_decode (data["tcp_rcv"])); - $("#text-snmp_community").attr ("value", js_html_entity_decode (data["snmp_community"])); - $("#text-snmp_oid").attr ("value", js_html_entity_decode (data["snmp_oid"])).show (); + $("#textarea_tcp_send") + .attr ("value", js_html_entity_decode (data["tcp_send"])); + $("#textarea_tcp_rcv") + .attr ("value", js_html_entity_decode (data["tcp_rcv"])); + $("#text-snmp_community") + .attr ("value", js_html_entity_decode (data["snmp_community"])); + $("#text-snmp_oid") + .val( js_html_entity_decode (data["snmp_oid"])); $("#oid, img#edit_oid").hide (); $("#id_module_group").val (data["id_module_group"]); $("#max_timeout").attr ("value", data["max_timeout"]);