(js) Restore user's last Calendar view

Also reviewed the handling of Angular modules dependencies.
This commit is contained in:
Francis Lachapelle committed 2015-07-29 11:47:01 -04:00
1 parent 762f305914
commit 7e10cff395
16 files changed
+101 -65

No files matched your search

@@ -47,7 +47,16 @@
return AddressBook; // return constructor
}];
/* Factory registration in Angular module */
/**
* @module SOGo.ContactsUI
* @desc Factory registration of AddressBook in Angular module.
*/
try {
angular.module('SOGo.ContactsUI');
}
catch(e) {
angular.module('SOGo.ContactsUI', ['SOGo.Common']);
}
angular.module('SOGo.ContactsUI')
.factory('AddressBook', AddressBook.$factory);