add tooltip

This commit is contained in:
Andrew Dolgov 2013-05-07 15:50:53 +04:00
parent 82076ce531
commit 69970d5b88

View file

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