mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-15 03:43:29 +00:00
(js) Restore user's last Calendar view
Also reviewed the handling of Angular modules dependencies.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user