From 11514d576f1ef2f06d7a71bbd13de06298baaa09 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Mar 2016 09:42:00 +0300 Subject: [PATCH] catchupFeedInGroup: dismiss elements on catchup --- js/feedlist.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); } -- 2.39.5