]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not hide read category which has unread children
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 Aug 2012 08:26:55 +0000 (12:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 Aug 2012 08:26:55 +0000 (12:26 +0400)
js/FeedTree.js

index b39e728623531d02f35f58f0b10516ba5e215b88..14bbad91d80060b8f962435a6d1f08b1bc20800f 100644 (file)
@@ -258,8 +258,9 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
 
                                if (node) {
                                        var check_unread = tree.model.getFeedUnread(bare_id, true);
+                                       var check_param = tree.model.getFeedValue(bare_id, true, "child_unread");
 
-                                       if (hide && cat_unread == 0 && check_unread == 0) {
+                                       if (hide && cat_unread == 0 && check_unread == 0 && check_param == 0) {
                                                Effect.Fade(node[0].rowNode, {duration : 0.3,
                                                        queue: { position: 'end', scope: 'FFADE-' + id, limit: 1 }});
                                        } else {