From: Andrew Dolgov Date: Fri, 18 Jan 2013 14:12:39 +0000 (+0400) Subject: add context menu to Special category X-Git-Tag: 1.7.0~50 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ec6e51556d544dfd532500344da52625b9c95781;p=tt-rss.git add context menu to Special category --- diff --git a/js/FeedTree.js b/js/FeedTree.js index 22e91362..b8fb93ca 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -162,6 +162,21 @@ dojo.declare("fox.FeedTree", dijit.Tree, { tnode._menu = menu; } + if (id.match("CAT:") && bare_id == -1) { + var menu = new dijit.Menu(); + menu.row_id = bare_id; + + menu.addChild(new dijit.MenuItem({ + label: __("Mark all feeds as read"), + onClick: function() { + catchupAllFeeds(); + }})); + + menu.bindDomNode(tnode.domNode); + tnode._menu = menu; + } + + //tnode.labelNode.innerHTML = args.label; return tnode; },