From 077f22133740b520f44c50a1364363114b621099 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 May 2013 12:40:51 +0400 Subject: [PATCH] hide read categories when feedtree category is first expanded --- js/FeedTree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/FeedTree.js b/js/FeedTree.js index d80f4606..f3ac8ba1 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -200,6 +200,9 @@ dojo.declare("fox.FeedTree", dijit.Tree, { }, postCreate: function() { this.connect(this.model, "onChange", "updateCounter"); + this.connect(this, "_expandNode", function() { + this.hideRead(getInitParam("hide_read_feeds"), getInitParam("hide_read_shows_special")); + }); this.inherited(arguments); }, -- 2.39.5