hide read categories when feedtree category is first expanded

This commit is contained in:
Andrew Dolgov 2013-05-15 12:40:51 +04:00
parent bc25394c79
commit 077f221337
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
}, },
postCreate: function() { postCreate: function() {
this.connect(this.model, "onChange", "updateCounter"); 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); this.inherited(arguments);
}, },