|
|
|
@ -121,10 +121,16 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|
|
|
|
var menu = new dijit.Menu();
|
|
|
|
|
menu.row_id = bare_id;
|
|
|
|
|
|
|
|
|
|
menu.addChild(new dijit.MenuItem({
|
|
|
|
|
label: __("Mark as read"),
|
|
|
|
|
onClick: function() {
|
|
|
|
|
catchupFeed(this.getParent().row_id);
|
|
|
|
|
}}));
|
|
|
|
|
|
|
|
|
|
menu.addChild(new dijit.MenuItem({
|
|
|
|
|
label: __("Edit feed"),
|
|
|
|
|
onClick: function() {
|
|
|
|
|
editFeed(this.getParent().row_id);
|
|
|
|
|
editFeed(this.getParent().row_id, false);
|
|
|
|
|
}}));
|
|
|
|
|
|
|
|
|
|
menu.addChild(new dijit.MenuItem({
|
|
|
|
@ -137,6 +143,20 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|
|
|
|
tnode._menu = menu;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (id.match("CAT:") && bare_id > 0) {
|
|
|
|
|
var menu = new dijit.Menu();
|
|
|
|
|
menu.row_id = bare_id;
|
|
|
|
|
|
|
|
|
|
menu.addChild(new dijit.MenuItem({
|
|
|
|
|
label: __("Mark as read"),
|
|
|
|
|
onClick: function() {
|
|
|
|
|
catchupFeed(this.getParent().row_id, true);
|
|
|
|
|
}}));
|
|
|
|
|
|
|
|
|
|
menu.bindDomNode(tnode.domNode);
|
|
|
|
|
tnode._menu = menu;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//tnode.labelNode.innerHTML = args.label;
|
|
|
|
|
return tnode;
|
|
|
|
|
},
|
|
|
|
|