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"]);