* New icon and parameter for the 'Drafts' folder,

* Fixed a refresh issue when removing a top folder (ie. with no parent) that is the current selection.
This commit is contained in:
Antoine Nguyen
2011-03-21 18:32:07 +01:00
parent b03f807a5e
commit 0bcaa4cc51
5 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -257,7 +257,8 @@ class IMAPconnector(object):
def getfolders(self, user):
md_folders = [{"name" : "INBOX", "class" : "inbox"},
{"name" : 'Drafts'},
{"name" : parameters.get_user(user, "DRAFTS_FOLDER"),
"class" : "drafts"},
{"name" : 'Junk'},
{"name" : parameters.get_user(user, "SENT_FOLDER")},
{"name" : parameters.get_user(user, "TRASH_FOLDER"),
+3
View File
@@ -43,6 +43,9 @@ def init():
parameters.register_user("SENT_FOLDER", type="string", deflt="Sent",
label=_("Sent folder"),
help=_("Folder where copies of sent messages go"))
parameters.register_user("DRAFTS_FOLDER", type="string", deflt="Drafts",
label=_("Drafts folder"),
help=_("Folder where drafts go"))
parameters.register_user("SIGNATURE", type="text", deflt="",
label=_("Signature text"),
help=_("User defined email signature"))
+6 -1
View File
@@ -74,7 +74,7 @@ a.block {
}
img.aligned {
float: left;
float: right;
}
img.footer {
@@ -98,6 +98,11 @@ li.folder {
background-repeat: no-repeat;
}
li.drafts {
background-image: url("/static/pics/draft.png");
background-repeat: no-repeat;
}
li.subfolders {
background-image: url("/static/pics/folder.png");
background-repeat: no-repeat;
+3
View File
@@ -54,6 +54,9 @@ var FdMenu = new Class({
infobox.info(gettext("Folder deleted."));
if (dfolder == current_anchor.base) {
var pfolder = ((this.current_folder.split(".")).slice(0, -1)).join(".");
if (pfolder == "") {
pfolder = "INBOX";
}
current_anchor.baseurl(pfolder, 1);
}
current_anchor.update.delay(500, current_anchor, 1);
Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B