mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
See ChangeLog
Monotone-Parent: eb22f4d3b368a79ce56bcad18f9f176fff0cb73c Monotone-Revision: 157670819f732591d0987b295faeb89c843803db Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-09-07T19:46:49 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -166,7 +166,7 @@
|
||||
[self _setupContext];
|
||||
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return ((height && [height intValue] > 0) ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
return ((height && [height intValue] > 0) ? [NSString stringWithFormat: @"%ipx", [height intValue]] : nil);
|
||||
}
|
||||
|
||||
- (WOResponse *) saveDragHandleStateAction
|
||||
@@ -192,6 +192,42 @@
|
||||
return [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
- (NSString *) eventsTabClass
|
||||
{
|
||||
NSString *list;
|
||||
|
||||
[self _setupContext];
|
||||
list = [moduleSettings objectForKey: @"SelectedList"];
|
||||
|
||||
return (list && [list compare: @"eventsListView"] == NSOrderedSame)? @"active" : @"";
|
||||
}
|
||||
|
||||
- (NSString *) tasksTabClass
|
||||
{
|
||||
NSString *list;
|
||||
|
||||
[self _setupContext];
|
||||
list = [moduleSettings objectForKey: @"SelectedList"];
|
||||
|
||||
return (list && [list compare: @"tasksListView"] == NSOrderedSame)? @"active" : @"";
|
||||
}
|
||||
|
||||
- (WOResponse *) saveSelectedListAction
|
||||
{
|
||||
WORequest *request;
|
||||
NSString *selectedList;
|
||||
|
||||
[self _setupContext];
|
||||
request = [context request];
|
||||
|
||||
selectedList = [request formValueForKey: @"list"];
|
||||
[moduleSettings setObject: selectedList
|
||||
forKey: @"SelectedList"];
|
||||
[us synchronize];
|
||||
|
||||
return [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
- (unsigned int) firstDayOfWeek
|
||||
{
|
||||
SOGoUserDefaults *ud;
|
||||
|
||||
Reference in New Issue
Block a user