limit fade effect scope when hiding feeds/categories

This commit is contained in:
Andrew Dolgov 2007-10-18 03:11:37 +01:00
parent 76283a4c15
commit f03ce70e74
1 changed files with 5 additions and 2 deletions

View File

@ -934,7 +934,9 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
if (hide && !has_unread) { if (hide && !has_unread) {
//node.childNodes[i].style.display = "none"; //node.childNodes[i].style.display = "none";
Effect.Fade(node.childNodes[i], {duration : 0.3}); var id = node.childNodes[i].id;
Effect.Fade(node.childNodes[i], {duration : 0.3,
queue: { position: 'end', scope: 'FFADE-' + id, limit: 1 }});
} }
if (!hide) { if (!hide) {
@ -960,7 +962,8 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
} }
if (hide) { if (hide) {
//cat_node.style.display = "none"; //cat_node.style.display = "none";
Effect.Fade(cat_node, {duration : 0.3}); Effect.Fade(cat_node, {duration : 0.3,
queue: { position: 'end', scope: 'CFADE-' + i, limit: 1 }});
} else { } else {
cat_node.style.display = "list-item"; cat_node.style.display = "list-item";
} }