diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2d354ca110..7714d9cc48 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-02-13 Koichiro Kikuchi + + * include/javascript/pandora_alerts.js: Removed double quotes which encolse + substituted field[1-3] from command preview. pandora_server doesn't add + double quotes to enclose these fields. + 2012-02-13 Vanessa Gil * operation/events/events_validate: Display options: validate and add a comment when the event status is "in process". diff --git a/pandora_console/include/javascript/pandora_alerts.js b/pandora_console/include/javascript/pandora_alerts.js index 2f3bb89847..96b11dcaf4 100644 --- a/pandora_console/include/javascript/pandora_alerts.js +++ b/pandora_console/include/javascript/pandora_alerts.js @@ -3,15 +3,15 @@ var original_command = ""; function parse_alert_command (command) { value = $("#text-field1").attr ("value"); re = /_FIELD1_/gi; - command = command.replace (re, "\""+value+"\""); + command = command.replace (re, value); value = $("#text-field2").attr ("value"); re = /_FIELD2_/gi; - command = command.replace (re, "\""+value+"\""); + command = command.replace (re, value); value = $("#textarea_field3").val(); re = /_FIELD3_/gi; - command = command.replace (re, "\""+value+"\""); + command = command.replace (re, value); return command; }