mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-21 13:18:34 +00:00
@@ -663,12 +663,12 @@ function ensureMailboxArgRepresentation(container, argumentSpan) {
|
||||
select.observe("change", boundCB);
|
||||
var mailboxes = (window.opener
|
||||
? window.opener.userMailboxes
|
||||
: ["INBOX" ]);
|
||||
: {'displayName': 'INBOX', 'path': 'INBOX' });
|
||||
for (var i = 0; i < mailboxes.length; i++) {
|
||||
var mailbox = mailboxes[i];
|
||||
var mboxOption = createElement("option", null, null,
|
||||
{ value: mailbox }, null, select);
|
||||
mboxOption.appendChild(document.createTextNode(mailbox));
|
||||
{ value: mailbox.path }, null, select);
|
||||
mboxOption.appendChild(document.createTextNode(mailbox.displayName));
|
||||
}
|
||||
argumentSpan.appendChild(select);
|
||||
}
|
||||
|
||||
@@ -448,8 +448,9 @@ function setupMailboxesFromJSON(jsonResponse) {
|
||||
var responseMboxes = jsonResponse.mailboxes;
|
||||
userMailboxes = $([]);
|
||||
for (var i = 0; i < responseMboxes.length; i++) {
|
||||
var name = responseMboxes[i].path.substr(1);
|
||||
userMailboxes.push(name);
|
||||
var mbox = { 'displayName': responseMboxes[i].displayName.substr(1),
|
||||
'path': responseMboxes[i].path.substr(1) };
|
||||
userMailboxes.push(mbox);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user