Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS

master
Andrew Dolgov 12 years ago
commit ef645ff05e

@ -128,7 +128,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
tnode._paramNode = param; tnode._paramNode = param;
} }
if (id.match("FEED:") && bare_id > 0) { if (id.match("FEED:")) {
var menu = new dijit.Menu(); var menu = new dijit.Menu();
menu.row_id = bare_id; menu.row_id = bare_id;
@ -138,17 +138,19 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
catchupFeed(this.getParent().row_id); catchupFeed(this.getParent().row_id);
}})); }}));
menu.addChild(new dijit.MenuItem({ if (bare_id > 0) {
label: __("Edit feed"), menu.addChild(new dijit.MenuItem({
onClick: function() { label: __("Edit feed"),
editFeed(this.getParent().row_id, false); onClick: function() {
}})); editFeed(this.getParent().row_id, false);
}}));
menu.addChild(new dijit.MenuItem({
label: __("Update feed"), menu.addChild(new dijit.MenuItem({
onClick: function() { label: __("Update feed"),
scheduleFeedUpdate(this.getParent().row_id, false); onClick: function() {
}})); scheduleFeedUpdate(this.getParent().row_id, false);
}}));
}
menu.bindDomNode(tnode.domNode); menu.bindDomNode(tnode.domNode);
tnode._menu = menu; tnode._menu = menu;

Loading…
Cancel
Save