From fd106a52fea8d9ecd3e1a1b710dfb452c86dcc4a Mon Sep 17 00:00:00 2001 From: Vanessa Gil Date: Tue, 23 Sep 2014 09:28:10 +0200 Subject: [PATCH] Validate post_process parameter. Ticket #1318 --- .../agentes/module_manager_editor_common.php | 14 ++++++++++++++ .../manage_network_components_form_network.php | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index d8a7da7fcc..fc3bf64b2f 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -739,6 +739,14 @@ $(document).ready (function () { event.preventDefault(); } }); + + //validate post_process. Change ',' by '.' + $("#submit-updbutton").click (function () { + validate_post_process(); + }); + $("#submit-crtbutton").click (function () { + validate_post_process(); + }); }); @@ -961,6 +969,12 @@ function delete_relation (num_row, id_relation) { } } +function validate_post_process() { + var post_process = $("#text-post_process").val(); + var new_post_process = post_process.replace(',','.'); + $("#text-post_process").val(new_post_process); +} + /* End of relationship javascript */ /* ]]> */ diff --git a/pandora_console/godmode/modules/manage_network_components_form_network.php b/pandora_console/godmode/modules/manage_network_components_form_network.php index 84c0869ed6..6104fa9462 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_network.php +++ b/pandora_console/godmode/modules/manage_network_components_form_network.php @@ -100,3 +100,19 @@ $table->colspan['tcp_receive'][1] = 3; push_table_row ($data, 'tcp_receive'); ?> +