From: Andrew Dolgov Date: Fri, 11 Nov 2016 11:14:31 +0000 (+0300) Subject: feed tree: add category context menu entry to un/collapse it X-Git-Tag: 17.1~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=acfee412a3b0de5a8329f168559728470ac0a9d1;p=tt-rss.git feed tree: add category context menu entry to un/collapse it --- 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() {