diff --git a/UI/Contacts/UIxContactView.m b/UI/Contacts/UIxContactView.m index 279cd690c..0fa7da548 100644 --- a/UI/Contacts/UIxContactView.m +++ b/UI/Contacts/UIxContactView.m @@ -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"]; diff --git a/UI/Contacts/UIxContactsListActions.m b/UI/Contacts/UIxContactsListActions.m index b952f6da8..176b5610a 100644 --- a/UI/Contacts/UIxContactsListActions.m +++ b/UI/Contacts/UIxContactsListActions.m @@ -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]]; } diff --git a/UI/Templates/ContactsUI/UIxContactFoldersView.wox b/UI/Templates/ContactsUI/UIxContactFoldersView.wox index edbbd06b8..39a5757a4 100644 --- a/UI/Templates/ContactsUI/UIxContactFoldersView.wox +++ b/UI/Templates/ContactsUI/UIxContactFoldersView.wox @@ -8,7 +8,7 @@ xmlns:label="OGo:label" xmlns:rsrc="OGo:url" const:userDefaultsKeys="SOGoContactsCategories" - const:jsFiles="SOGo/resource.js, Contacts/contact-model.js, Contacts/addressbook-model.js" + const:jsFiles="Common/resource.js, Contacts/card-model.js, Contacts/addressbook-model.js" className="UIxPageFrame" title="name" var:popup="isPopup"> @@ -89,448 +89,425 @@
  • -
    - -
    +
    + +
    • -
    • +
    -
    -
    -
    -
      -
    • -
    -
    - - -
    - - -
    - -
    - + data-ng-cloak="ng-cloak">{{folder.name}} + + + + + +
    + +
    - -
    + +
    + +
    +
    +
    -
    - +
    + + + + -
    - + - - - -
    +