]> git.wh0rd.org - tt-rss.git/commitdiff
add context menu to Special category
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 18 Jan 2013 14:12:39 +0000 (18:12 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 18 Jan 2013 14:12:39 +0000 (18:12 +0400)
js/FeedTree.js

index 22e91362a3542aa379c97db0585b3ae51e32d337..b8fb93ca0dfd900f50294ae09d0f8feb0ffc84ea 100644 (file)
@@ -162,6 +162,21 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
                        tnode._menu = menu;
                }
 
+               if (id.match("CAT:") && bare_id == -1) {
+                       var menu = new dijit.Menu();
+                       menu.row_id = bare_id;
+
+                       menu.addChild(new dijit.MenuItem({
+                               label: __("Mark all feeds as read"),
+                               onClick: function() {
+                                       catchupAllFeeds();
+                               }}));
+
+                       menu.bindDomNode(tnode.domNode);
+                       tnode._menu = menu;
+               }
+
+
                //tnode.labelNode.innerHTML = args.label;
                return tnode;
        },