mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-13 02:43:17 +00:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user