add tooltip

This commit is contained in:
Andrew Dolgov 2013-05-07 15:50:53 +04:00
parent 82076ce531
commit 69970d5b88
1 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
//tnode.labelNode.innerHTML = args.label;
return tnode;
},
getTooltip: function (item) {
if (item.updated)
return item.updated;
else
return "";
},
getIconClass: function (item, opened) {
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feedIcon";
},