See ChangeLog
Monotone-Parent: 0a4b114d2f6d275bb25991bd16c7f776c00ee233 Monotone-Revision: c8a36e926bc75ffc1d4206737365b76d6621e3ab Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-02-08T17:17:28 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
f84de5a75e
commit
fe8b465ddc
|
@ -1,5 +1,10 @@
|
|||
2010-02-08 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactFoldersView.m (-verticalDragHandleStyle):
|
||||
new method (was missing), borrowed from UIxCalMainView.m.
|
||||
(-horizontalDragHandleStyle): idem.
|
||||
(contactsListContentStyle): idem.
|
||||
|
||||
* UI/WebServerResources/ContactsUI.js (-onAddressBookRemove):
|
||||
avoid selecting the personal addressbook prior to obtaining the
|
||||
user's answer.
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
NSString *selectorComponentClass;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
id currentFolder;
|
||||
BOOL contextIsSetup;
|
||||
}
|
||||
|
||||
- (NSArray *) contactFolders;
|
||||
|
|
|
@ -53,12 +53,22 @@
|
|||
|
||||
@implementation UIxContactFoldersView
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
contextIsSetup = NO;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) _setupContext
|
||||
{
|
||||
SOGoUser *activeUser;
|
||||
NSString *module;
|
||||
SOGoContactFolders *clientObject;
|
||||
|
||||
if (!contextIsSetup)
|
||||
{
|
||||
activeUser = [context activeUser];
|
||||
clientObject = [self clientObject];
|
||||
|
||||
|
@ -69,6 +79,8 @@
|
|||
if (!moduleSettings)
|
||||
moduleSettings = [NSMutableDictionary dictionary];
|
||||
[us setObject: moduleSettings forKey: module];
|
||||
contextIsSetup = YES;
|
||||
}
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) mailerContactsAction
|
||||
|
@ -411,6 +423,36 @@
|
|||
return ([currentFolder isKindOfClass: [SOGoContactSourceFolder class]]? @"remote" : @"local");
|
||||
}
|
||||
|
||||
- (NSString *) verticalDragHandleStyle
|
||||
{
|
||||
NSString *vertical;
|
||||
|
||||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return ((vertical && [vertical intValue] > 0) ? (id)[vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
{
|
||||
NSString *horizontal;
|
||||
|
||||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return ((horizontal && [horizontal intValue] > 0) ? (id)[horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) contactsListContentStyle
|
||||
{
|
||||
NSString *height;
|
||||
|
||||
[self _setupContext];
|
||||
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return ((height && [height intValue] > 0) ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
}
|
||||
|
||||
- (WOResponse *) saveDragHandleStateAction
|
||||
{
|
||||
WORequest *request;
|
||||
|
|
Loading…
Reference in New Issue