From fe38e97fb6aabd18e4c075a8591fa7bfa2233a60 Mon Sep 17 00:00:00 2001 From: esanchezm Date: Fri, 22 May 2009 09:23:50 +0000 Subject: [PATCH] 2009-05-22 Esteban Sanchez * include/javascript/pandora_modules.js: Set values of plugin component when one of this kind is selected. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1703 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/javascript/pandora_modules.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4f557f004e..e195fbecba 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-05-22 Esteban Sanchez + + * include/javascript/pandora_modules.js: Set values of plugin + component when one of this kind is selected. + 2009-05-22 Esteban Sanchez * extras/pandoradb_migrate_v2.x_to_v3.0.sql, diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 378d409694..9134ad9fc4 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -78,6 +78,10 @@ function configure_modules_form () { $("#oid, img#edit_oid").hide (); $("#id_module_group option["+data["id_group"]+"]").select (1); $("#max_timeout").attr ("value", data["max_timeout"]); + $("#id_plugin option[value="+data["id_plugin"]+"]").select (1); + $("#text-plugin_user").attr ("value", html_entity_decode (data["plugin_user"])); + $("#password-plugin_pass").attr ("value", html_entity_decode (data["plugin_pass"])); + $("#text-plugin_parameter").attr ("value", html_entity_decode (data["plugin_parameter"])); if (data["history_data"]) $("#checkbox-history_data").check (); else