add experimental fade-in effect for autoloaded headlines

This commit is contained in:
Andrew Dolgov 2011-08-04 11:56:43 +04:00
parent e2d2339cf0
commit c3fed9e63d
1 changed files with 7 additions and 0 deletions

View 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");