1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:35:56 +00:00

view: implement a hack to fake counter updates for current feed and its parent

This commit is contained in:
Andrew Dolgov
2012-04-04 15:34:06 +04:00
parent 21e42e5fb0
commit 6c8e8fbdc9
3 changed files with 41 additions and 0 deletions

View File

@@ -433,5 +433,14 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
}
},
getFeedCategory: function(feed) {
try {
return this.getNodesByItem(this.model.store.
_itemsByIdentity["FEED:" + feed])[0].
getParent().item.bare_id[0];
} catch (e) {
return false;
}
},
});