From acfee412a3b0de5a8329f168559728470ac0a9d1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 11 Nov 2016 14:14:31 +0300 Subject: [PATCH] feed tree: add category context menu entry to un/collapse it --- js/FeedTree.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/FeedTree.js b/js/FeedTree.js index e4daec52..9239a28a 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -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() { -- 2.39.5