]> git.wh0rd.org - tt-rss.git/commitdiff
limit fade effect scope when hiding feeds/categories
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 18 Oct 2007 02:11:37 +0000 (03:11 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 18 Oct 2007 02:11:37 +0000 (03:11 +0100)
functions.js

index 47374ea4efbda6c538a76b7dec4b9bdc91e32a65..abbe6232662344e5875bdf07ef7d4efcb95f9025 100644 (file)
@@ -934,7 +934,9 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
        
                                if (hide && !has_unread) {
                                        //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) {
@@ -960,7 +962,8 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
                }
                if (hide) {
                        //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 {
                        cat_node.style.display = "list-item";
                }