mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-03 02:25:25 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user