mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
Added support for choosing a list from the contacts popup
Monotone-Parent: c3073560ecefd7e654284be77264558f35df1171 Monotone-Revision: befe03897e161f1796e6bb4fd47e4ff7f46528ab Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-10T21:00:38 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -119,4 +119,31 @@
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (WOResponse *) propertiesAction
|
||||
{
|
||||
NSMutableArray *data;
|
||||
NGVCardReference *card;
|
||||
WOResponse *rc;
|
||||
int i, count;
|
||||
|
||||
data = [NSMutableArray array];
|
||||
co = [self clientObject];
|
||||
list = [co vList];
|
||||
|
||||
count = [[list cardReferences] count];
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
card = [[list cardReferences] objectAtIndex: i];
|
||||
[data addObject: [NSArray arrayWithObjects: [card reference], [card fn],
|
||||
[card email], nil]];
|
||||
}
|
||||
|
||||
rc = [context response];
|
||||
[rc setHeader: @"text/plain; charset=utf-8"
|
||||
forKey: @"content-type"];
|
||||
[rc appendContentString: [data jsonRepresentation]];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user