feed tree: add category context menu entry to un/collapse it

This commit is contained in:
Andrew Dolgov 2016-11-11 14:14:31 +03:00
parent 4a5490dc58
commit acfee412a3
1 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,12 @@ 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() {