mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-17 09:18:13 +00:00
Monotone-Parent: b31e6efb5efed6bcfa2c6aaca6dbbb4e06a9a637
Monotone-Revision: ae19f5b80b87d9f63b4068d2a027a9fdb3190efb Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-10-09T19:27:37 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
0408389bb9
commit
dbfd64e61f
5 files changed
+125
-50
No files matched your search
@@ -11,22 +11,27 @@ var MailerUIdTreeExtension = {
|
||||
sent: labels["SentFolderName"],
|
||||
draft: labels["DraftsFolderName"],
|
||||
trash: labels["TrashFolderName"] },
|
||||
_addFolderNode: function (parent, name, fullName, type) {
|
||||
_addFolderNode: function (parent, name, fullName, type, unseen) {
|
||||
var icon = this.folderIcons[type];
|
||||
if (icon)
|
||||
icon = ResourcesURL + "/" + icon;
|
||||
else
|
||||
icon = "";
|
||||
var displayName = this.folderNames[type];
|
||||
var hasUnseen = false;
|
||||
if (!displayName)
|
||||
displayName = name;
|
||||
if (typeof unseen != "undefined") {
|
||||
hasUnseen = true;
|
||||
displayName += "<span id=\"unseenCount\"> (<span>" + parseInt(unseen) + "</span>)</span>";
|
||||
}
|
||||
this.add(this.elementCounter, parent, displayName, 1, '#', fullName,
|
||||
type, '', '', icon, icon);
|
||||
type, '', '', icon, icon, hasUnseen);
|
||||
this.elementCounter++;
|
||||
},
|
||||
_addFolder: function (parent, folder) {
|
||||
var thisCounter = this.elementCounter;
|
||||
this._addFolderNode(parent, folder.name, folder.fullName(), folder.type);
|
||||
this._addFolderNode(parent, folder.name, folder.fullName(), folder.type, folder.unseen);
|
||||
for (var i = 0; i < folder.children.length; i++)
|
||||
this._addFolder(thisCounter, folder.children[i]);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user