category: swap context menu items
This commit is contained in:
parent
e4071d2544
commit
f04b12d8e7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue