Added counters of unread messages for additional accounts (#377)

This commit is contained in:
RainLoop Team 2015-02-02 00:46:23 +04:00
parent abddb3d828
commit 79233ad83c
19 changed files with 333 additions and 93 deletions

View file

@ -59,7 +59,7 @@
return iResult;
}, this);
}, this).extend({'notify': 'always'});
this.enableDesktopNotification = ko.computed({
'owner': this,
@ -117,7 +117,7 @@
this.allowDesktopNotification(false);
}
}
});
}).extend({'notify': 'always'});
if (!this.enableDesktopNotification.valueHasMutated)
{
@ -150,7 +150,8 @@
this.soundNotificationIsSupported(true);
this.buzz = new buzz.sound(Links.sound('new-mail'), {
formats: ['ogg', 'mp3']
'preload': 'none',
'formats': ['mp3', 'ogg']
});
}
else