Monotone-Parent: 845e78bebd63c5b3c1727b437500cbe012c2f5d5

Monotone-Revision: c8e16863bcabf9adf6b224c4a9922c0ace67917f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-01-22T21:34:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-01-22 21:34:39 +00:00
parent 1e64a91f02
commit dc41b95e0d
2 changed files with 14 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
2010-01-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/MailerUI.js (composeNewMessage): fixed
potential js error in IE when no mailbox is selected.
* Tools/SOGoToolRestore.m (+initialize): we need to invoke
[iCalEntityObject+SOGo initializeSOGoExtensions], otherwise the
extraction of quick records will cause a crash because some global

View File

@@ -575,9 +575,17 @@ function onComposeMessage() {
}
function composeNewMessage() {
var account = Mailer.currentMailbox.split("/")[1];
var url = ApplicationBaseURL + "/" + encodeURI(account) + "/compose";
openMailComposeWindow(url);
var account;
if (Mailer.currentMailbox)
account = Mailer.currentMailbox.split("/")[1];
else if (mailAccounts.length)
account = mailAccounts[0][0];
else
account = null;
if (account) {
var url = ApplicationBaseURL + "/" + encodeURI(account) + "/compose";
openMailComposeWindow(url);
}
}
function openMailbox(mailbox, reload, idx, updateStatus) {