From 5a7e6020057a0df5b03e5a1496bc25ccf52fface Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 14 Jul 2014 00:30:55 +0200 Subject: Bug main view prefix title https://github.com/marienfressinaud/FreshRSS/issues/536 --- p/scripts/main.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'p/scripts') diff --git a/p/scripts/main.js b/p/scripts/main.js index 4f7494cd1..c379dd3d0 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -103,6 +103,9 @@ function incUnreadsFeed(article, feed_id, nb) { if (article || ($feed.closest('.active').length > 0 && $feed.siblings('.active').length === 0)) { isCurrentView = true; return incLabel(p1, nb, true) + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); + } else if ($('.all.active').length > 0) { + isCurrentView = feed_priority > 0; + return incLabel(p1, feed_priority > 0 ? nb : 0, true) + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); } else { return p1 + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); } -- cgit v1.2.3