+2007-12-17 Francis Lachapelle <flachapelle@inverse.ca>
+
+ * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame
+ -composeAction]): fixed URL when no recipient is specified.
+
2007-12-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/NSArray+Scheduler.m ([NSMutableArray
- invitation from Google calendar are now correctly parsed;
- it is now possible to search events by title in the Calendar module;
- all the writable calendars are now listed in the event edition dialog;
+- mail folders state is now save;
+- the status of participants in represented with an icon;
0.9.0-20071119 (1.0 rc1)
------------------------
- (id <WOActionResults>) composeAction
{
NSArray *accounts;
- NSString *firstAccount, *newLocation;
+ NSString *firstAccount, *newLocation, *parameters;
SOGoMailAccounts *co;
NSDictionary *formValues;
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];
}
var rowsWithEmail = 0;
if (rows.length == 0) {
- window.alert(labels["Please select a contact."]);
+ openMailComposeWindow(ApplicationBaseURL + "Mail/compose");
return false;
}
function appendAddressBook(name, folder) {
var owner;
+ var result = true;
if (folder) {
owner = getSubscribedFolderOwner(folder);
owner = UserLogin;
if ($(folder))
- window.alert(clabels["You have already subscribed to that folder!"]);
+ result = false;
else {
var contactFolders = $("contactFolders");
var items = contactFolders.childNodesWithTag("li");
li.appendChild(document.createTextNode(name));
setEventsOnContactFolder(li);
}
+
+ return result;
}
function newFolderCallback(http) {
}
function onHeaderClick(event) {
+ if (TableKit.Resizable._onHandle)
+ return;
+
var headerId = this.getAttribute("id");
var newSortAttribute;
if (headerId == "subjectHeader")
folderName = spans1[0].innerHTML + ' (' + email + ')';
}
var data = { folderName: folderName, folder: folder, window: window };
- window.opener.subscribeToFolder(window.opener.userFolderCallback, data);
+ if (!window.opener.subscribeToFolder(window.opener.userFolderCallback, data))
+ window.alert(clabels["You have already subscribed to that folder!"]);
}
}