catchupFeedInGroup: dismiss elements on catchup

This commit is contained in:
Andrew Dolgov 2016-03-22 09:42:00 +03:00
parent 8b2a52c635
commit 11514d576f
1 changed files with 8 additions and 2 deletions

View File

@ -446,14 +446,20 @@ function catchupFeedInGroup(id) {
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) { if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
var rows = $$("#headlines-frame > div[id*=RROW][class*=Unread][orig-feed-id='"+id+"']"); var rows = $$("#headlines-frame > div[id*=RROW][orig-feed-id='"+id+"']");
if (rows.length > 0) { if (rows.length > 0) {
rows.each(function (row) { rows.each(function (row) {
row.removeClassName("Unread"); new Effect.Fade(row, {duration : 0.5, afterFinish: function() {
Element.remove(row);
}});
}); });
var feedTitle = $("FTITLE-" + id);
if (feedTitle) new Effect.Fade(feedTitle, {duration : 0.5});
updateFloatingTitle(true); updateFloatingTitle(true);
} }