From: Andrew Dolgov Date: Wed, 15 May 2013 08:40:51 +0000 (+0400) Subject: hide read categories when feedtree category is first expanded X-Git-Tag: 1.8~114 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=077f22133740b520f44c50a1364363114b621099;p=tt-rss.git hide read categories when feedtree category is first expanded --- 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); },