2012-02-13 Koichiro Kikuchi <koichiro@rworks.jp>
* 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. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5562 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d584dc4c0b
commit
b695968809
|
@ -1,3 +1,9 @@
|
|||
2012-02-13 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||
|
||||
* 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 <vanessa.gil@artica.es>
|
||||
* operation/events/events_validate: Display options: validate and
|
||||
add a comment when the event status is "in process".
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue