mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
Monotone-Parent: 773965cc12e1e34ce72a11b7b25f3ff6e0dc7887
Monotone-Revision: c0da933d3e86c470a7d83491a010f1ba6edc3fcd Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-03-25T19:59:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -124,22 +124,34 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
return yearMenuItem;
|
||||
}
|
||||
|
||||
- (WOResponse *) getDragHandlesStateAction
|
||||
- (NSString *) verticalDragHandleStyle
|
||||
{
|
||||
NSArray *dragHandles;
|
||||
NSString *vertical, *horizontal;
|
||||
NSString *vertical;
|
||||
|
||||
[self _setupContext];
|
||||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
dragHandles = [[NSArray alloc] initWithObjects:
|
||||
vertical != nil ? vertical : @"",
|
||||
horizontal ? horizontal : @"",
|
||||
nil];
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
{
|
||||
NSString *horizontal;
|
||||
|
||||
return [self responseWithStatus: 200
|
||||
andString: [dragHandles jsonRepresentation]];
|
||||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) eventsListViewStyle
|
||||
{
|
||||
NSString *height;
|
||||
|
||||
[self _setupContext];
|
||||
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (height ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
}
|
||||
|
||||
- (WOResponse *) saveDragHandleStateAction
|
||||
|
||||
Reference in New Issue
Block a user