mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:45:55 +00:00
feed tree: add category context menu entry to un/collapse it
This commit is contained in:
@@ -156,6 +156,12 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
|
|||||||
var menu = new dijit.Menu();
|
var menu = new dijit.Menu();
|
||||||
menu.row_id = bare_id;
|
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({
|
menu.addChild(new dijit.MenuItem({
|
||||||
label: __("Mark as read"),
|
label: __("Mark as read"),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user