preffiltertree: hide generic document icon

This commit is contained in:
Andrew Dolgov 2010-11-19 18:38:25 +03:00
parent 3851fd5643
commit 38e6aa7704
1 changed files with 3 additions and 0 deletions

View 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";