aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-07 20:34:08 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-07 20:34:08 +0200
commit83b8af59e506b4c0f0784e767ed3da633243406e (patch)
tree95fa914bf4c491815e5f98f0620c8d8e51d082a4 /p/scripts
parent65d6796e9244bbc94f5d04cf47723a533b6a5351 (diff)
Revert "Dynamic favicon all unread articles"
This reverts commit 6972a469794a654c6ecd6b32b68a813e1c47f7ec.
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 7a85be9c6..762b2e58e 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1060,10 +1060,7 @@ function init_password_observers() {
function faviconNbUnread(n) {
if (typeof n === 'undefined') {
- n = 0;
- $('.feed[data-unread]').each(function() {
- n += str2int(this.getAttribute('data-unread'));
- });
+ n = str2int($('.category.all>a').attr('data-unread'));
}
//http://remysharp.com/2010/08/24/dynamic-favicons/
var canvas = document.createElement('canvas'),