add context menu to Special category

This commit is contained in:
Andrew Dolgov 2013-01-18 18:12:39 +04:00
parent 057cc81302
commit ec6e51556d

View file

@ -162,6 +162,21 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
tnode._menu = menu; 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; //tnode.labelNode.innerHTML = args.label;
return tnode; return tnode;
}, },