]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedtree: prevent hideReadFeeds from working on category nodes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 15 Sep 2012 16:39:44 +0000 (20:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 15 Sep 2012 16:39:44 +0000 (20:39 +0400)
js/FeedTree.js

index fb744bf9f9e9b77e9cc6239bc85248912460daaa..6e3043604c6defbe37fd57dc33816af3b8f3e249 100644 (file)
@@ -298,18 +298,21 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
 
                items.each(function(feed) {
                        var id = String(feed.id);
-                       var bare_id = parseInt(feed.bare_id);;
-
-                       var unread = feed.unread[0];
-                       var node = tree._itemNodesMap[id];
-
-                       if (node) {
-                               if (hide && unread == 0 && (bare_id > 0 || !show_special)) {
-                                       Effect.Fade(node[0].rowNode, {duration : 0.3,
-                                               queue: { position: 'end', scope: 'FFADE-' + id, limit: 1 }});
-                               } else {
-                                       Element.show(node[0].rowNode);
-                                       ++cat_unread;
+
+                       if (!id.match("^CAT:")) {
+                               var bare_id = parseInt(feed.bare_id);;
+
+                               var unread = feed.unread[0];
+                               var node = tree._itemNodesMap[id];
+
+                               if (node) {
+                                       if (hide && unread == 0 && (bare_id > 0 || !show_special)) {
+                                               Effect.Fade(node[0].rowNode, {duration : 0.3,
+                                                       queue: { position: 'end', scope: 'FFADE-' + id, limit: 1 }});
+                                       } else {
+                                               Element.show(node[0].rowNode);
+                                               ++cat_unread;
+                                       }
                                }
                        }
                });