1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 21:11:29 +00:00

getLoadedArticleIds: consider visible rows only

catchupFeedInGroup: hide articles when catching up, with caveats
This commit is contained in:
Andrew Dolgov
2016-03-22 23:22:28 +03:00
parent 6be118fda1
commit 2d052e42b5
3 changed files with 25 additions and 5 deletions

View File

@@ -453,8 +453,26 @@ function catchupFeedInGroup(id) {
rows.each(function (row) {
row.removeClassName("Unread");
if (row.getAttribute("data-article-id") != getActiveArticleId()) {
new Effect.Fade(row, {duration: 0.5});
}
});
var feedTitles = $$("#headlines-frame > div[class='cdmFeedTitle']");
for (var i = 0; i < feedTitles.length; i++) {
if (feedTitles[i].getAttribute("data-feed-id") == id) {
if (i < feedTitles.length - 1) {
new Effect.Fade(feedTitles[i], {duration: 0.5});
}
break;
}
}
updateFloatingTitle(true);
}

View File

@@ -928,8 +928,10 @@ function getLoadedArticleIds() {
var children = $$("#headlines-frame > div[id*=RROW-]");
children.each(function(child) {
if (Element.visible(child)) {
rv.push(child.id.replace("RROW-", ""));
});
}
});
return rv;