From: Andrew Dolgov Date: Wed, 15 Aug 2012 08:26:55 +0000 (+0400) Subject: do not hide read category which has unread children X-Git-Tag: 1.6.0~153 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9772759980e41da98c2243ce5fa266bae8ddc8f8;p=tt-rss.git do not hide read category which has unread children --- diff --git a/js/FeedTree.js b/js/FeedTree.js index b39e7286..14bbad91 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -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 {