]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchupFeedInGroup: dismiss elements on catchup
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 06:42:00 +0000 (09:42 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 06:42:00 +0000 (09:42 +0300)
js/feedlist.js

index 08c54122451ce656d2353611ed345e3de146cb7f..475904efadacb14df6596bbef7420e1e17e8bef1 100644 (file)
@@ -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);
                        }