mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 17:58:12 +00:00
Improve template of Contacts module
This commit is contained in:
1 parent
fcfbb6fe05
commit
8d36a3fd25
3 files changed
+383
-406
No files matched your search
@@ -571,7 +571,7 @@
|
||||
if (max > 0)
|
||||
{
|
||||
addresses = [NSMutableArray arrayWithCapacity: max];
|
||||
for (count = 1; count < max; count++)
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
adr = [elements objectAtIndex: count];
|
||||
type = [adr value: 0 ofAttribute: @"type"];
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
data = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[[self clientObject] nameInContainer], @"id",
|
||||
newContactsList, @"contacts",
|
||||
newContactsList, @"cards",
|
||||
nil];
|
||||
|
||||
result = [self responseWithStatus: 200
|
||||
@@ -215,7 +215,7 @@
|
||||
sortedContacts = [NSArray array];
|
||||
|
||||
data = [NSDictionary dictionaryWithObjectsAndKeys: searchText, @"searchText",
|
||||
sortedContacts, @"contacts", nil];
|
||||
sortedContacts, @"cards", nil];
|
||||
result = [self responseWithStatus: 200
|
||||
andString: [data jsonRepresentation]];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user