diff options
| author | 2014-08-06 20:41:47 +0200 | |
|---|---|---|
| committer | 2014-08-06 20:41:47 +0200 | |
| commit | 6972a469794a654c6ecd6b32b68a813e1c47f7ec (patch) | |
| tree | bafed01ec9dd2612e81d7808257d50e6aa3fb677 /p/scripts | |
| parent | 6ef9fc7a92e494c4c64189762053ef39fdfbb786 (diff) | |
Dynamic favicon all unread articles
https://github.com/marienfressinaud/FreshRSS/issues/539
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 762b2e58e..7a85be9c6 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1060,7 +1060,10 @@ function init_password_observers() { function faviconNbUnread(n) { if (typeof n === 'undefined') { - n = str2int($('.category.all>a').attr('data-unread')); + n = 0; + $('.feed[data-unread]').each(function() { + n += str2int(this.getAttribute('data-unread')); + }); } //http://remysharp.com/2010/08/24/dynamic-favicons/ var canvas = document.createElement('canvas'), |
