Commit acfee412 authored by Andrew Dolgov's avatar Andrew Dolgov

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

parent 4a5490dc
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment