Add unread count to page title

This commit is contained in:
RainLoop Team 2013-12-13 01:27:22 +04:00
parent be150d7fc9
commit ff8ef2012b
5 changed files with 52 additions and 8 deletions

View file

@ -137,6 +137,12 @@ FolderModel.prototype.initComputed = function ()
iUnread = this.messageCountUnread(),
iType = this.type()
;
if (Enums.FolderType.Inbox === iType)
{
RL.data().foldersInboxUnreadCount(iUnread);
}
// return 0 < iUnread ? '' + iUnread : '';
// return 0 < iUnread && 'INBOX' === this.fullNameRaw ? '' + iUnread : '';
return 0 < iUnread && (Enums.FolderType.Inbox === iType || Enums.FolderType.Spam === iType) ? '' + iUnread :