FeedTree: allow context menu for virtual feeds
This commit is contained in:
parent
b2bbbd2324
commit
10afc7c63b
|
@ -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,6 +138,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
catchupFeed(this.getParent().row_id);
|
catchupFeed(this.getParent().row_id);
|
||||||
}}));
|
}}));
|
||||||
|
|
||||||
|
if (bare_id > 0) {
|
||||||
menu.addChild(new dijit.MenuItem({
|
menu.addChild(new dijit.MenuItem({
|
||||||
label: __("Edit feed"),
|
label: __("Edit feed"),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
|
@ -149,6 +150,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
scheduleFeedUpdate(this.getParent().row_id, false);
|
scheduleFeedUpdate(this.getParent().row_id, false);
|
||||||
}}));
|
}}));
|
||||||
|
}
|
||||||
|
|
||||||
menu.bindDomNode(tnode.domNode);
|
menu.bindDomNode(tnode.domNode);
|
||||||
tnode._menu = menu;
|
tnode._menu = menu;
|
||||||
|
|
Loading…
Reference in New Issue