]> git.wh0rd.org Git - tt-rss.git/commitdiff
hide read categories when feedtree category is first expanded
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 May 2013 08:40:51 +0000 (12:40 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 May 2013 08:40:51 +0000 (12:40 +0400)
js/FeedTree.js

index d80f4606204148f9cbfb0b5ee1aecf8dcf68c478..f3ac8ba19587362c93e6b5c596f18daaaafba6db 100644 (file)
@@ -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);
        },