]> git.wh0rd.org - tt-rss.git/blobdiff - FeedTree.js
implement labels submenu; rework init process so that feedlist_init depends on feedTr...
[tt-rss.git] / FeedTree.js
index f01fd24cf0dddf56c1dd812283fd58412600436a..19c32a95f6d412d49748332f39f7dd3dc33085cf 100644 (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];
        },