Browse Source

Bug main view prefix title

https://github.com/marienfressinaud/FreshRSS/issues/536
Alexandre Alapetite 11 năm trước cách đây
mục cha
commit
5a7e602005
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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)) {
 		if (article || ($feed.closest('.active').length > 0 && $feed.siblings('.active').length === 0)) {
 			isCurrentView = true;
 			isCurrentView = true;
 			return incLabel(p1, nb, true) + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, 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 {
 		} else {
 			return p1 + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true);
 			return p1 + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true);
 		}
 		}