Monotone-Parent: 035456c4dbd9ae05ba39c5cecd124b113e996c99

Monotone-Revision: 7466bb5da0445e1513612a7c2b55fbe4ba52738b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-22T21:56:27
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-10-22 21:56:27 +00:00
parent 54812bd74e
commit 5f97744f45
1 changed files with 5 additions and 4 deletions

View File

@ -126,15 +126,16 @@ function validateEditorInput(sender) {
field = document.pageform.subject;
if (field.value == "")
errortext = errortext + labels.error_missingsubject + "\n";
errortext = errortext + labels["error_missingsubject"] + "\n";
if (!UIxRecipientSelectorHasRecipients())
errortext = errortext + labels.error_missingrecipients + "\n";
errortext = errortext + labels["error_missingrecipients"] + "\n";
if (errortext.length > 0) {
alert(labels.error_validationfailed + ":\n" + errortext);
alert(labels["error_validationfailed"] + ":\n" + errortext);
return false;
}
return true;
}
@ -337,7 +338,7 @@ function onMailEditorClose(event) {
http.open("POST", url, false /* not async */);
http.send("");
}
Event.stopObserving(window, "beforeunload", onMailEditorClose);
}