]> git.wh0rd.org Git - tt-rss.git/commitdiff
add experimental fade-in effect for autoloaded headlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Aug 2011 07:56:43 +0000 (11:56 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Aug 2011 07:56:43 +0000 (11:56 +0400)
viewfeed.js

index 3a16edfab25063430c2dc3f219cf1eae8258dffb..ed3b897e67a51969d0247ad9ddf7c711c7bce647 100644 (file)
@@ -101,6 +101,7 @@ function headlines_callback2(transport, feed_cur_page) {
                                                c.domNode.removeChild(hsp);
 
                                        $$("#headlines-tmp > div").each(function(row) {
+                                               row.style.display = 'none';
                                                c.domNode.appendChild(row);
                                        });
 
@@ -120,6 +121,12 @@ function headlines_callback2(transport, feed_cur_page) {
 
                                        initHeadlinesMenu();
 
+                                       $$("#headlines-frame > div[id*=RROW]").each(
+                                       function(child) {
+                                               if (!Element.visible(child))
+                                                       new Effect.Appear(child, { duration : 0.5 });
+                                       });
+
                                } else {
                                        console.log("no new headlines received");