category: swap context menu items

This commit is contained in:
Andrew Dolgov 2016-11-22 09:11:13 +03:00
parent e4071d2544
commit f04b12d8e7
1 changed files with 6 additions and 6 deletions

View File

@ -156,18 +156,18 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
var menu = new dijit.Menu();
menu.row_id = bare_id;
menu.addChild(new dijit.MenuItem({
label: __("(Un)collapse"),
onClick: function() {
dijit.byId("feedTree").collapseCat(this.getParent().row_id);
}}));
menu.addChild(new dijit.MenuItem({
label: __("Mark as read"),
onClick: function() {
catchupFeed(this.getParent().row_id, true);
}}));
menu.addChild(new dijit.MenuItem({
label: __("(Un)collapse"),
onClick: function() {
dijit.byId("feedTree").collapseCat(this.getParent().row_id);
}}));
menu.bindDomNode(tnode.domNode);
tnode._menu = menu;
}