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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user