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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user