From: Andrew Dolgov Date: Tue, 22 Mar 2016 06:42:00 +0000 (+0300) Subject: catchupFeedInGroup: dismiss elements on catchup X-Git-Tag: 16.3~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=11514d576f1ef2f06d7a71bbd13de06298baaa09;p=tt-rss.git catchupFeedInGroup: dismiss elements on catchup --- diff --git a/js/feedlist.js b/js/feedlist.js index 08c54122..475904ef 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -446,14 +446,20 @@ function catchupFeedInGroup(id) { 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) { 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); }