]> git.wh0rd.org - tt-rss.git/commitdiff
feed tree: add category context menu entry to un/collapse it
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 11 Nov 2016 11:14:31 +0000 (14:14 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 11 Nov 2016 11:14:31 +0000 (14:14 +0300)
js/FeedTree.js

index e4daec522b9fce8a2bb0b0ed3c56db8954f15bd6..9239a28a2c9806f8311c0fc792142c43510dd13e 100644 (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() {