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

add special indication for categories having unread items in child categories

This commit is contained in:
Andrew Dolgov
2012-08-13 19:52:34 +04:00
parent be514d00c9
commit 2c5f231e43
4 changed files with 71 additions and 3 deletions

View File

@@ -286,6 +286,7 @@ function parse_counters(elems, scheduled_call) {
var error = elems[l].error;
var has_img = elems[l].has_img;
var updated = elems[l].updated;
var child_unread = parseInt(elems[l].child_counter);
if (id == "global-unread") {
global_unread = ctr;
@@ -322,6 +323,8 @@ function parse_counters(elems, scheduled_call) {
setFeedIcon(id, false, 'images/blank_icon.gif');
}
}
} else {
setCatParam(id, child_unread);
}
}
@@ -411,6 +414,19 @@ function setFeedValue(feed, is_cat, key, value) {
}
}
function setCatParam(cat, value) {
try {
var tree = dijit.byId("feedTree");
if (tree && tree.model)
return tree.setCatParam(cat, value);
} catch (e) {
//
}
}
function selectFeed(feed, is_cat) {
try {
var tree = dijit.byId("feedTree");