Monotone-Parent: 558ad53328c167b68815d36374a3c2d92055f0b2

Monotone-Revision: 6a48cdb414ef6ca38666c4558e55a983da0b1cdf

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-12-17T15:51:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-12-17 15:51:37 +00:00
parent 5b678fd334
commit c3f9091196
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -119,7 +119,7 @@
- (id <WOActionResults>) composeAction
{
NSArray *accounts;
NSString *firstAccount, *newLocation;
NSString *firstAccount, *newLocation, *parameters;
SOGoMailAccounts *co;
NSDictionary *formValues;
@@ -127,10 +127,11 @@
accounts = [[context activeUser] mailAccounts];
firstAccount = [[accounts objectsForKey: @"name"] objectAtIndex: 0];
formValues = [[context request] formValues];
parameters = [formValues count] > 0 ? [formValues asURLParameters] : @"?mailto=";
newLocation = [NSString stringWithFormat: @"%@/%@/compose%@",
[co baseURLInContext: context],
firstAccount,
[formValues asURLParameters]];
parameters];
return [self redirectToLocation: newLocation];
}
+1 -1
View File
@@ -353,7 +353,7 @@ function onToolbarWriteToSelectedContacts(event) {
var rowsWithEmail = 0;
if (rows.length == 0) {
window.alert(labels["Please select a contact."]);
openMailComposeWindow(ApplicationBaseURL + "Mail/compose");
return false;
}