From: Andrew Dolgov Date: Fri, 19 Nov 2010 15:38:25 +0000 (+0300) Subject: preffiltertree: hide generic document icon X-Git-Tag: 1.5.0~136 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=38e6aa7704b3411735b2ef1706dc9d73ecb65406;p=tt-rss.git preffiltertree: hide generic document icon --- diff --git a/PrefFilterTree.js b/PrefFilterTree.js index b938517d..6f38f8db 100644 --- a/PrefFilterTree.js +++ b/PrefFilterTree.js @@ -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";