]> git.wh0rd.org Git - tt-rss.git/commitdiff
Revert "fix clamping for infinite scrolling (refs #479)"
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 10 Aug 2012 11:02:11 +0000 (15:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 10 Aug 2012 11:02:11 +0000 (15:02 +0400)
This reverts commit 8c5c4e494d92772533b2d56cbd426a01ccc24da1.

js/viewfeed.js

index 49eac8750fd45e61eb0f3b68bdae4b5d4c4fb1c9..2e830164041c7ff21db72b5b1a7236e691e5a320 100644 (file)
@@ -116,7 +116,6 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
                                        $$("#headlines-tmp > div").each(function(row) {
                                                if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
                                                        row.style.display = 'none';
-
                                                        c.domNode.appendChild(row);
                                                } else {
                                                        row.parentNode.removeChild(row);
@@ -142,10 +141,10 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
                                        $$("#headlines-frame > div[id*=RROW]").each(
                                        function(child) {
                                                if (!Element.visible(child)) {
-                                                       //new Effect.Appear(child, { duration : 0.5 });
-                                                       Element.show(child);
+                                                       new Effect.Appear(child, { duration : 0.5 });
 
                                                        cp = child.getElementsByClassName("contentPreview")[0];
+
                                                        clamp_element(cp, 50);
                                                }
                                        });