]> git.wh0rd.org Git - tt-rss.git/commitdiff
add tooltip
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 7 May 2013 11:50:53 +0000 (15:50 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 7 May 2013 11:50:53 +0000 (15:50 +0400)
js/FeedTree.js

index 07c3002f2eb4870ffcbb2fe0ca549b8a6eea5762..a3761ad2e349e8125464f523749c929186523d0b 100644 (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";
        },