From c82143fd2eef2f2f521372aba278add8aff0a4e5 Mon Sep 17 00:00:00 2001 From: Alexandre Cloutier Date: Fri, 17 Oct 2014 11:01:56 -0400 Subject: [PATCH] Refactor acl object and applied comments --- UI/MainUI/SOGoUserHomePage.m | 3 +- .../ContactsUI/UIxContactFoldersView.wox | 83 +++++++-------- UI/WebServerResources/js/Common/acl-model.js | 37 +++---- UI/WebServerResources/js/Common/resource.js | 8 +- .../js/Contacts/addressbook-model.js | 11 +- UI/WebServerResources/js/ContactsUI.js | 73 ++++++++----- UI/WebServerResources/js/mobile/ContactsUI.js | 63 +++++++---- UI/WebServerResources/scss/ContactsUI.scss | 100 +++++++++++++++++- UI/WebServerResources/scss/_settings.scss | 6 +- 9 files changed, 259 insertions(+), 125 deletions(-) diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index 2c56d0fbe..8b5e24447 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -467,7 +467,8 @@ if ([domain length]) uid = [NSString stringWithFormat: @"%@@%@", uid, domain]; [jsonLine setObject: uid forKey: @"uid"]; - [jsonLine setObject: [NSString stringWithFormat:@"%@ <%@>",[contact objectForKey: @"cn"], [contact objectForKey: @"c_email"]] forKey: @"displayName"]; + [jsonLine setObject: [contact objectForKey: @"cn"] forKey: @"cn"]; + [jsonLine setObject: [contact objectForKey: @"c_email"] forKey: @"c_email"]; [jsonLine setObject: [NSNumber numberWithBool: [[contact objectForKey: @"isGroup"] boolValue]] forKey: @"isGroup"]; contactInfo = [contact objectForKey: @"c_info"]; if (contactInfo) diff --git a/UI/Templates/ContactsUI/UIxContactFoldersView.wox b/UI/Templates/ContactsUI/UIxContactFoldersView.wox index 4ec9880fa..177af190c 100644 --- a/UI/Templates/ContactsUI/UIxContactFoldersView.wox +++ b/UI/Templates/ContactsUI/UIxContactFoldersView.wox @@ -67,43 +67,40 @@ + + + +
+ + +
+ +