mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-07 23:51:33 +00:00
implement labels submenu; rework init process so that feedlist_init depends on feedTree being loaded
This commit is contained in:
11
FeedTree.js
11
FeedTree.js
@@ -5,6 +5,17 @@ dojo.require("dijit.Tree");
|
||||
dojo.require("dijit.Menu");
|
||||
|
||||
dojo.declare("fox.FeedStoreModel", dijit.tree.ForestStoreModel, {
|
||||
getItemsInCategory: function (id) {
|
||||
if (!this.store._itemsByIdentity) return undefined;
|
||||
|
||||
cat = this.store._itemsByIdentity['CAT:' + id];
|
||||
|
||||
if (cat && cat.items)
|
||||
return cat.items;
|
||||
else
|
||||
return undefined;
|
||||
|
||||
},
|
||||
getItemById: function(id) {
|
||||
return this.store._itemsByIdentity[id];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user