(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

@@ -44,7 +44,16 @@
return Account; // return constructor
}];
/* Factory registration in Angular module */
/**
* @module SOGo.MailerUI
* @desc Factory registration of Account in Angular module.
*/
try {
angular.module('SOGo.MailerUI');
}
catch(e) {
angular.module('SOGo.MailerUI', ['SOGo.Common']);
}
angular.module('SOGo.MailerUI')
.factory('Account', Account.$factory);
@@ -57,15 +57,19 @@
/**
* @module SOGo.MailerUI
* @desc Factory registration of Card in Angular module.
* @desc Factory registration of Mailbox in Angular module.
*/
try {
angular.module('SOGo.MailerUI');
}
catch(e) {
angular.module('SOGo.MailerUI', ['SOGo.Common']);
}
angular.module('SOGo.MailerUI')
/* Factory constants */
.constant('sgMailbox_PRELOAD', {
LOOKAHEAD: 50,
SIZE: 100
})
/* Factory registration in Angular module */
.factory('Mailbox', Mailbox.$factory);
/**