Added Tinycon (Unread message tab's icon)

This commit is contained in:
RainLoop Team 2015-03-04 04:30:37 +04:00
parent f1b3271b4d
commit 47bb848905
15 changed files with 426 additions and 17 deletions

View file

@ -45,21 +45,21 @@
*/
MailBoxUserScreen.prototype.oLastRoute = {};
MailBoxUserScreen.prototype.setNewTitle = function ()
MailBoxUserScreen.prototype.updateWindowTitle = function ()
{
var
sEmail = AccountStore.email(),
nFoldersInboxUnreadCount = FolderStore.foldersInboxUnreadCount()
;
require('App/User').setTitle(('' === sEmail ? '' :
require('App/User').setWindowTitle(('' === sEmail ? '' : '' +
(0 < nFoldersInboxUnreadCount ? '(' + nFoldersInboxUnreadCount + ') ' : ' ') +
sEmail + ' - ') + Translator.i18n('TITLES/MAILBOX'));
};
MailBoxUserScreen.prototype.onShow = function ()
{
this.setNewTitle();
this.updateWindowTitle();
Globals.keyScope(Enums.KeyState.MessageList);
};
@ -112,7 +112,7 @@
SettingsStore.layout.valueHasMutated();
}, 50);
Events.sub('mailbox.inbox-unread-count', function (iCount) {
Events.sub('mailbox.inbox-unread-count', _.bind(function (iCount) {
FolderStore.foldersInboxUnreadCount(iCount);
@ -124,12 +124,10 @@
oItem.count(iCount);
}
});
});
FolderStore.foldersInboxUnreadCount.subscribe(function () {
this.setNewTitle();
}, this);
this.updateWindowTitle();
}, this));
};
MailBoxUserScreen.prototype.onBuild = function ()