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:
Francis Lachapelle
2012-09-07 19:46:49 +00:00
parent 613499c63a
commit e7f0c9c03f
38 changed files with 389 additions and 259 deletions
+37 -1
View File
@@ -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;