Minor contacts interface improvements.

Move intervals to pub/sub system
This commit is contained in:
RainLoop Team 2013-12-15 15:02:50 +04:00
parent b4e52e768c
commit 975947a948
31 changed files with 691 additions and 524 deletions

View file

@ -83,10 +83,6 @@ MailBoxScreen.prototype.onStart = function ()
RL.accountsAndIdentities();
}
_.delay(function () {
RL.quota();
}, 1000 * 5);
_.delay(function () {
if ('INBOX' !== oData.currentFolderFullNameRaw())
{
@ -111,16 +107,12 @@ MailBoxScreen.prototype.onStart = function ()
}, 2000);
_.delay(function () {
RL.remote().appDelayStart(Utils.emptyFunction);
}, 1000 * 35);
window.setInterval(function () {
RL.folderInformation('INBOX');
}, 1000 * 60 * 2);
window.setInterval(function () {
RL.quota();
}, 1000 * 60 * 5);
}, 5000);
_.delay(function () {
RL.remote().appDelayStart(Utils.emptyFunction);
}, 35000);
$html.toggleClass('rl-no-preview-pane', !oData.usePreviewPane());