diff options
author | Andrew Dolgov <[email protected]> | 2012-08-09 13:15:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-09 13:15:14 +0400 |
commit | 8c5c4e494d92772533b2d56cbd426a01ccc24da1 (patch) | |
tree | 5f690fbd5d7a7f917a6c83ff13a165b81752cc7a /js/viewfeed.js | |
parent | 26e4b12466208b433fef35946cb61ef9b3e52e45 (diff) |
fix clamping for infinite scrolling (refs #479)
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 2e8301640..49eac8750 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -116,6 +116,7 @@ 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); @@ -141,10 +142,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 }); + //new Effect.Appear(child, { duration : 0.5 }); + Element.show(child); cp = child.getElementsByClassName("contentPreview")[0]; - clamp_element(cp, 50); } }); |