From: Andrew Dolgov Date: Tue, 22 Nov 2016 06:11:13 +0000 (+0300) Subject: category: swap context menu items X-Git-Tag: 17.1~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f04b12d8e7f5339ffc57f1d0492158571c3921f0;p=tt-rss.git category: swap context menu items --- diff --git a/js/FeedTree.js b/js/FeedTree.js index 9239a28a..dc35619e 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -157,15 +157,15 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) { menu.row_id = bare_id; menu.addChild(new dijit.MenuItem({ - label: __("(Un)collapse"), + label: __("Mark as read"), onClick: function() { - dijit.byId("feedTree").collapseCat(this.getParent().row_id); + catchupFeed(this.getParent().row_id, true); }})); menu.addChild(new dijit.MenuItem({ - label: __("Mark as read"), + label: __("(Un)collapse"), onClick: function() { - catchupFeed(this.getParent().row_id, true); + dijit.byId("feedTree").collapseCat(this.getParent().row_id); }})); menu.bindDomNode(tnode.domNode);