mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 14:28:52 +00:00
Monotone-Parent: fe2bfcd815039f3fc87b6307a5eb4a89ca9d9022
Monotone-Revision: 3ba82c795635bb187147cf6c3f6238f8f7b592eb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-08-06T15:37:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
2010-08-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/MailerUIdTree.js:
|
||||
(MailerUIdTreeExtension._addFolderNode): no longer set a SPAN
|
||||
arroung the unseen count.
|
||||
(MailerUIdTreeExtension.getMailboxNode): new method returning the
|
||||
DIV.dTreeNode corresponding to the mailbox name passed as
|
||||
parameter.
|
||||
|
||||
* UI/WebServerResources/UIxPreferences.js: (_setupEvents): no
|
||||
longer take any parameter, which simplifies the method, as
|
||||
removing the "change" observers on input field is not useful.
|
||||
|
||||
@@ -21,7 +21,7 @@ var MailerUIdTreeExtension = {
|
||||
displayName = name;
|
||||
if (typeof unseen != "undefined") {
|
||||
hasUnseen = true;
|
||||
displayName += "<span id=\"unseenCount\"> (<span>" + parseInt(unseen) + "</span>)</span>";
|
||||
displayName += " <span class=\"unseenCount\">(" + parseInt(unseen) + ")</span>";
|
||||
}
|
||||
this.add(this.elementCounter, parent, displayName, 1, '#', fullName,
|
||||
type, '', '', icon, icon, hasUnseen);
|
||||
@@ -58,6 +58,17 @@ var MailerUIdTreeExtension = {
|
||||
},
|
||||
autoSync: function() {
|
||||
this.config.useCookies = true;
|
||||
},
|
||||
getMailboxNode: function(mailbox) {
|
||||
var childNode = null;
|
||||
for (var i = 0; !childNode && i < this.aNodes.length; i++) {
|
||||
var aNode = this.aNodes[i];
|
||||
if (aNode.dataname == mailbox) {
|
||||
childNode = $("tgmailboxTree" + aNode.id);
|
||||
}
|
||||
}
|
||||
|
||||
return ((childNode) ? childNode.parentNode : null);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user