mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Added Tinycon (Unread message tab's icon)
This commit is contained in:
parent
f1b3271b4d
commit
47bb848905
15 changed files with 426 additions and 17 deletions
|
|
@ -172,7 +172,7 @@
|
|||
/**
|
||||
* @param {string} sTitle
|
||||
*/
|
||||
AbstractApp.prototype.setTitle = function (sTitle)
|
||||
AbstractApp.prototype.setWindowTitle = function (sTitle)
|
||||
{
|
||||
sTitle = ((Utils.isNormal(sTitle) && 0 < sTitle.length) ? sTitle + ' - ' : '') +
|
||||
Settings.settingsGet('Title') || '';
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
$ = require('$'),
|
||||
moment = require('moment'),
|
||||
SimplePace = require('SimplePace'),
|
||||
Tinycon = require('Tinycon'),
|
||||
|
||||
Enums = require('Common/Enums'),
|
||||
Globals = require('Common/Globals'),
|
||||
|
|
@ -1342,7 +1343,7 @@
|
|||
{
|
||||
Globals.$html.addClass('rl-user-auth');
|
||||
|
||||
this.setTitle(Translator.i18n('TITLES/LOADING'));
|
||||
this.setWindowTitle(Translator.i18n('TITLES/LOADING'));
|
||||
|
||||
//require.ensure([], function() { // require code splitting
|
||||
|
||||
|
|
@ -1479,6 +1480,17 @@
|
|||
_.defer(function () {
|
||||
self.initVerticalLayoutResizer(Enums.ClientSideKeyName.FolderListSize);
|
||||
});
|
||||
|
||||
if (Tinycon)
|
||||
{
|
||||
Tinycon.setOptions({
|
||||
fallback: false
|
||||
});
|
||||
|
||||
Events.sub('mailbox.inbox-unread-count', function (iCount) {
|
||||
Tinycon.setBubble(0 < iCount ? (99 < iCount ? 99 : iCount) : 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue