]> git.wh0rd.org Git - tt-rss.git/commitdiff
hideOrShowFeedsCategory: do not hide active feeds, hide errors
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Nov 2010 13:01:04 +0000 (16:01 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Nov 2010 13:01:04 +0000 (16:01 +0300)
feedlist.js

index c252a6adaeb759a5f056941a6a5097228712153b..54298e9528e1b0668cc57450c2cf2e08f753fb23 100644 (file)
@@ -960,9 +960,9 @@ function hideOrShowFeedsCategory(cat_id, hide) {
                nodes.each(function(node) {
 
                        var is_unread = node.hasClassName("Unread") ||
+                               node.hasClassName("Selected") || 
                                (node.hasClassName("virt") && 
-                                       getInitParam("hide_read_shows_special")) ||
-                               node.hasClassName("error");
+                                       getInitParam("hide_read_shows_special"));
 
                        if (hide && !is_unread) {
                                Effect.Fade(node, {duration : 0.3, 
@@ -975,7 +975,7 @@ function hideOrShowFeedsCategory(cat_id, hide) {
                });
 
                if (cat_node) {
-                       if (hide && cat_unread == 0) {
+                       if (hide && cat_unread == 0 && !cat_node.hasClassName("Selected")) {
                                Effect.Fade(cat_node, {duration : 0.3, 
                                        queue: { position: 'end', scope: 'CFADE-' + cat_node.id, limit: 1 }});
                        } else {