From caa920e0ff2535b7d4a31afa0ffc60a2840da588 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 29 Sep 2014 11:06:46 -0400 Subject: [PATCH] Improve contact module models - Fixed reset behavior - Created an abstract state for the card viewer and editor - Moved the card instance from the $rootScope.addressbook to the $scope --- .../ContactsUI/UIxContactFoldersView.wox | 123 ++++++++---------- .../ContactsUI/UIxContactFoldersView.wox | 78 +++++------ UI/WebServerResources/js/Common/ui-desktop.js | 2 +- .../js/Contacts/addressbook-model.js | 43 +++--- .../js/Contacts/card-model.js | 68 +++++++--- UI/WebServerResources/js/ContactsUI.js | 93 +++++++------ UI/WebServerResources/js/mobile/ContactsUI.js | 39 +++--- 7 files changed, 227 insertions(+), 219 deletions(-) diff --git a/UI/Templates/ContactsUI/UIxContactFoldersView.wox b/UI/Templates/ContactsUI/UIxContactFoldersView.wox index b79f109bf..14c2dabe6 100644 --- a/UI/Templates/ContactsUI/UIxContactFoldersView.wox +++ b/UI/Templates/ContactsUI/UIxContactFoldersView.wox @@ -12,21 +12,6 @@ className="UIxPageFrame" title="name" var:popup="isPopup"> - @@ -177,22 +162,22 @@ -
> +
@@ -201,35 +186,35 @@
-

-
{{addressbook.card.$description()}} - {{category.value}} +

+
{{card.$description()}} + {{category.value}}
- - + +
-
+
- {{addressbook.card.$birthday() | date}} + {{card.$birthday() | date}}
-
+
- -
-
+
+
@@ -238,8 +223,8 @@
-
-
+
+
@@ -248,8 +233,8 @@
-
-
+
+
@@ -258,8 +243,8 @@
-
-
+
+
@@ -268,12 +253,12 @@
-
+
-
+
@@ -283,7 +268,7 @@