See ChangeLog

Monotone-Parent: bab59e2cce32327be3e5571e6b50d880dffdd253
Monotone-Revision: f00d778f8af0801dcc730f04b0149cc2f3292501

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-05-15T20:26:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-05-15 20:26:25 +00:00
parent 42f5859b19
commit fb18e6ec8d
6 changed files with 510 additions and 433 deletions
+13
View File
@@ -447,6 +447,19 @@ static BOOL shouldDisplayAdditionalPreferences = NO;
}
/* Mailer */
- (void) setShowSubscribedFoldersOnly: (BOOL) showSubscribedFoldersOnly
{
if (showSubscribedFoldersOnly)
[userDefaults setBool: YES forKey: @"showSubscribedFoldersOnly"];
else
[userDefaults removeObjectForKey: @"showSubscribedFoldersOnly"];
}
- (BOOL) showSubscribedFoldersOnly
{
return [userDefaults boolForKey: @"showSubscribedFoldersOnly"];
}
- (NSArray *) messageCheckList
{
return [NSArray arrayWithObjects: @"manually", @"every_minute",
@@ -95,6 +95,11 @@
</var:if>
<var:if condition="userHasMailAccess">
<div id="mailOptionsView" class="tab">
<label><input type="checkbox"
const:name="subscribedFoldersOnly"
const:id="subscribedFoldersOnly"
var:checked="showSubscribedFoldersOnly" />
<var:string label:value="Show subscribed mailboxes only"/></label><br/>
<label><var:string label:value="Check for new mail:"/>
<var:popup list="messageCheckList" item="item"
const:id="messageCheck"
+1 -1
View File
@@ -10,7 +10,7 @@ function savePreferences(sender) {
function _setupEvents(enable) {
var widgets = [ "timezone", "shortDateFormat", "longDateFormat",
"timeFormat", "weekStartDay", "dayStartTime", "dayEndTime",
"firstWeek", "messageCheck" ];
"firstWeek", "messageCheck", "subscribedFoldersOnly" ];
for (var i = 0; i < widgets.length; i++) {
var widget = $(widgets[i]);
if (widget) {