1
0
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:
Andrew Dolgov
2010-11-19 22:18:26 +03:00
parent bc372fe30f
commit 1beea80017
3 changed files with 51 additions and 6 deletions

View File

@@ -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];
},