]> git.wh0rd.org Git - tt-rss.git/commitdiff
preffiltertree: hide generic document icon
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 15:38:25 +0000 (18:38 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 15:38:25 +0000 (18:38 +0300)
PrefFilterTree.js

index b938517d5de0cc95b0386e6c2df0cf110598c77f..6f38f8db278640aa67687f26353249bbe3d918ae 100644 (file)
@@ -37,6 +37,9 @@ dojo.declare("fox.PrefFilterTree", lib.CheckBoxTree, {
 
                return label;
        },
+       getIconClass: function (item, opened) {
+               return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
+       },
        getLabelClass: function (item, opened) {
                var enabled = this.model.store.getValue(item, 'enabled');
                return (enabled != false) ? "dijitTreeLabel labelFixedLength" : "dijitTreeLabel labelFixedLength Disabled";