Просмотр исходного кода

Bug main view prefix title

https://github.com/marienfressinaud/FreshRSS/issues/536
Alexandre Alapetite 11 лет назад
Родитель
Сommit
5a7e602005
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      p/scripts/main.js

+ 3 - 0
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);
 		}