From: Andrew Dolgov Date: Tue, 7 May 2013 11:50:53 +0000 (+0400) Subject: add tooltip X-Git-Tag: 1.7.9~24 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=69970d5b886c11309ea28d69e3939df8f520f7d2;p=tt-rss.git add tooltip --- diff --git a/js/FeedTree.js b/js/FeedTree.js index 07c3002f..a3761ad2 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -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"; },