mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 12:58:50 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user