mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
Minor fixes
Monotone-Parent: 8515028ade639f5e3e38f20b4eba28b16a1250b1 Monotone-Revision: b092fe6aebfa4e00c827df976eaa7e49cb1c6539 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-29T20:39:23 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1876,7 +1876,7 @@ function onLoadMailboxesCallback(http) {
|
||||
}
|
||||
|
||||
function buildMailboxes(accountKeys, encoded) {
|
||||
var account = new Mailbox("account", accountKeys);
|
||||
var account = new Mailbox("account", accountKeys[0], null, accountKeys[1]);
|
||||
var accountIndex = mailAccounts.indexOf(accountKeys);
|
||||
var data = encoded.evalJSON(true);
|
||||
var mailboxes = data.mailboxes;
|
||||
@@ -2288,16 +2288,13 @@ function getMenus() {
|
||||
|
||||
document.observe("dom:loaded", initMailer);
|
||||
|
||||
function Mailbox(type, name, unseen) {
|
||||
function Mailbox(type, name, unseen, displayName) {
|
||||
this.type = type;
|
||||
if (typeof (name) == "object" && name.length == 2) {
|
||||
this.name = name[0];
|
||||
this.displayName = name[1];
|
||||
}
|
||||
else {
|
||||
this.name = name;
|
||||
this.displayName = name;
|
||||
}
|
||||
this.name = name;
|
||||
if (displayName)
|
||||
this.displayName = displayName;
|
||||
else
|
||||
this.displayName = name;
|
||||
this.unseen = unseen;
|
||||
this.parentFolder = null;
|
||||
this.children = new Array();
|
||||
|
||||
Reference in New Issue
Block a user