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

@ -16764,6 +16764,7 @@ function WebMailDataStorage()
if (!oMessage)
{
this.message.focused(false);
this.messageFullScreenMode(false);
this.hideMessageBodies();
if (Enums.Layout.NoPreview === RL.data().layout() &&
@ -19427,7 +19428,7 @@ MailBoxScreen.prototype.setNewTitle = function ()
sEmail = RL.data().accountEmail(),
ifoldersInboxUnreadCount = RL.data().foldersInboxUnreadCount()
;
RL.setTitle(('' === sEmail ? '' :
(0 < ifoldersInboxUnreadCount ? '(' + ifoldersInboxUnreadCount + ') ' : ' ') + sEmail + ' - ') + Utils.i18n('TITLES/MAILBOX'));
};
@ -19472,7 +19473,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();
@ -19518,7 +19518,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);

File diff suppressed because one or more lines are too long