]> git.wh0rd.org - tt-rss.git/commitdiff
category: swap context menu items
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Nov 2016 06:11:13 +0000 (09:11 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Nov 2016 06:11:13 +0000 (09:11 +0300)
js/FeedTree.js

index 9239a28a2c9806f8311c0fc792142c43510dd13e..dc35619eaeeb8b809ac39c14fe7288bb49da5176 100644 (file)
@@ -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);