From 9772759980e41da98c2243ce5fa266bae8ddc8f8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Aug 2012 12:26:55 +0400 Subject: [PATCH] do not hide read category which has unread children --- js/FeedTree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/FeedTree.js b/js/FeedTree.js index b39e72862..14bbad91d 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 {