Small fixes

This commit is contained in:
RainLoop Team 2014-08-07 01:10:16 +04:00
parent 1027f319ed
commit 2d9ac0b53a
6 changed files with 28 additions and 22 deletions

View file

@ -29,7 +29,7 @@ MailBoxScreen.prototype.setNewTitle = function ()
sEmail = RL.data().accountEmail(),
ifoldersInboxUnreadCount = RL.data().foldersInboxUnreadCount()
;
RL.setTitle(('' === sEmail ? '' :
(0 < ifoldersInboxUnreadCount ? '(' + ifoldersInboxUnreadCount + ') ' : ' ') + sEmail + ' - ') + Utils.i18n('TITLES/MAILBOX'));
};
@ -74,7 +74,6 @@ MailBoxScreen.prototype.onRoute = function (sFolderHash, iPage, sSearch, bPrevie
if (Enums.Layout.NoPreview === oData.layout() && oData.message())
{
oData.message(null);
oData.messageFullScreenMode(false);
}
RL.reloadMessageList();
@ -120,7 +119,7 @@ MailBoxScreen.prototype.onStart = function ()
oData.layout.subscribe(function (nValue) {
$html.toggleClass('rl-no-preview-pane', Enums.Layout.NoPreview === nValue);
});
oData.foldersInboxUnreadCount.subscribe(function () {
this.setNewTitle();
}, this);

View file

@ -289,6 +289,7 @@ function WebMailDataStorage()
if (!oMessage)
{
this.message.focused(false);
this.messageFullScreenMode(false);
this.hideMessageBodies();
if (Enums.Layout.NoPreview === RL.data().layout() &&