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

cleanup previous patch

This commit is contained in:
Andrew Dolgov
2012-09-15 20:44:50 +04:00
parent 6cdc457643
commit 1a8a623924

View File

@@ -250,12 +250,6 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
var tree = this; var tree = this;
if (cat && cat.items) { if (cat && cat.items) {
cat.items.each(function(child) {
if (child.items) {
tree.hideReadCat(child, hide, show_special);
}
});
var cat_unread = tree.hideReadFeeds(cat.items, hide, show_special); var cat_unread = tree.hideReadFeeds(cat.items, hide, show_special);
var id = String(cat.id); var id = String(cat.id);
@@ -299,7 +293,14 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
items.each(function(feed) { items.each(function(feed) {
var id = String(feed.id); var id = String(feed.id);
if (!id.match("^CAT:")) { // it's a subcategory
if (feed.items) {
feed.items.each(function(child) {
if (child.items) {
tree.hideReadCat(child, hide, show_special);
}
});
} else { // it's a feed
var bare_id = parseInt(feed.bare_id);; var bare_id = parseInt(feed.bare_id);;
var unread = feed.unread[0]; var unread = feed.unread[0];