From e9779f4dba64507327c11d8381370f005ff78f0e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 15 Sep 2009 14:51:09 +0000 Subject: [PATCH] 2009-09-15 Miguel de Dios * include/javascript/pandora_alerts.js: fix the id for access to jquery in the field3. * godmode/alerts/configure_alert_action.php: fix the id for access to jquery in the event keyup. Fixes: 2845692 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1944 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/godmode/alerts/configure_alert_action.php | 2 +- pandora_console/include/javascript/pandora_alerts.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cd41bc34fc..891466aca9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2009-09-15 Miguel de Dios + + * include/javascript/pandora_alerts.js: fix the id for access to jquery + in the field3. + * godmode/alerts/configure_alert_action.php: fix the id for access to jquery + in the event keyup. + Fixes: 2845692 + 2009-09-15 Miguel de Dios * include/functions_db.php: add function "get_db_value_sql" for use in diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 85f6b76e01..10a2467c7b 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -113,6 +113,6 @@ $(document).ready (function () { $("#text-field1").keyup (render_command_preview); $("#text-field2").keyup (render_command_preview); - $("#text-field3").keyup (render_command_preview); + $("#textarea_field3").keyup (render_command_preview); }); diff --git a/pandora_console/include/javascript/pandora_alerts.js b/pandora_console/include/javascript/pandora_alerts.js index 7bf104273b..2f3bb89847 100644 --- a/pandora_console/include/javascript/pandora_alerts.js +++ b/pandora_console/include/javascript/pandora_alerts.js @@ -9,7 +9,7 @@ function parse_alert_command (command) { re = /_FIELD2_/gi; command = command.replace (re, "\""+value+"\""); - value = $("#text-field3").attr ("value"); + value = $("#textarea_field3").val(); re = /_FIELD3_/gi; command = command.replace (re, "\""+value+"\"");