Added web elements to set an auto-reply message and forward address in the preferences window.

Monotone-Parent: 3862a22ce756fbd4c559e0d9a9a211821d9c597b
Monotone-Revision: baa7bc0bc74871932c7f4e4d759f25a216d0c939

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-10-09T20:30:42
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-10-09 20:30:42 +00:00
parent b31c571cee
commit 8414c7bfec
7 changed files with 325 additions and 65 deletions

View File

@@ -22,6 +22,21 @@ function savePreferences(sender) {
}
}
if ($("enableVacation") && $("enableVacation").checked) {
if ($("autoReplyText").value.strip().length == 0
|| $("autoReplyEmailAddresses").value.strip().length == 0) {
alert(getLabel("Please specify your message and your email addresses for which you want to enable auto reply."));
sendForm = false;
}
}
if ($("enableForward") && $("enableForward").checked) {
if ($("forwardAddress").value.strip().length == 0) {
alert(getLabel("Please specify an address to which you want to forward your messages."));
sendForm = false;
}
}
if (sendForm)
$("mainForm").submit();