Improve template of Contacts module

This commit is contained in:
Francis Lachapelle committed 2014-09-12 09:59:48 -04:00
1 parent fcfbb6fe05
commit 8d36a3fd25
3 files changed
+383 -406

No files matched your search

+1 -1
View File
@@ -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"];
+2 -2
View File
@@ -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]];
}