field = document.pageform.subject;
if (field.value == "")
errortext = errortext + "Missing Subject\n";
+
+ if (!UIxRecipientSelectorHasRecipients())
+ errortext = errortext + "Missing Recipients\n";
if (errortext.length > 0) {
alert("validation failed:\n" + errortext);
if (!validateEditorInput(sender))
return false;
- // TODO: validate whether we have a recipient! (#1220)
- /*
- if (!UIxRecipientSelectorHasRecipients()) {
- alert("do not have any recipients?!");
- return false;
- }
- */
document.pageform.action="send";
document.pageform.submit();
// if everything is ok, close the window