Monotone-Parent: 88aa0604fa28680daef426d3364f7f10665edb11

Monotone-Revision: 917c16cbc72247a3b9d3bc68547572f93349255c

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-12-13T21:07:09
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-12-13 21:07:09 +00:00
parent 6b5da3c2ea
commit 438e9bb635
6 changed files with 138 additions and 6 deletions
+25 -2
View File
@@ -29,8 +29,31 @@ var MailerUIdTreeExtension = {
this._addFolder(thisCounter, folder.children[i]);
},
addMailAccount: function (mailAccount) {
this._addFolder(0, mailAccount);
}
this._addFolder(0, mailAccount);
},
setCookie: function(cookieName, cookieValue, expires, path, domain, secure) {
},
getCookie: function(cookieName) {
return ("");
},
updateCookie: function () {
if (Mailer.foldersStateTimer)
clearTimeout(Mailer.foldersStateTimer);
Mailer.foldersStateTimer = setTimeout('saveFoldersState()', 3000); // 3 seconds
},
getFoldersState: function () {
var expandedFolders = new Array();
for (var n = 0; n < this.aNodes.length; n++) {
if (this.aNodes[n]._io && this.aNodes[n].pid != this.root.id) {
expandedFolders.push(this.aNodes[n].dataname);
}
}
return expandedFolders.toJSON();
},
autoSync: function() {
this.config.useCookies = true;
}
};
Object.extend(dTree.prototype, MailerUIdTreeExtension);