mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 19:21:29 +00:00
hideOrShowFeedsCategory: fix for offline feedlist
This commit is contained in:
39
functions.js
39
functions.js
@@ -854,25 +854,28 @@ function hideOrShowFeedsCategory(id, hide) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// debug("end cat: " + node.id + " unread " + cat_unread);
|
// debug("end cat: " + node.id + " unread " + cat_unread);
|
||||||
|
|
||||||
if (cat_unread == 0) {
|
if (cat_node) {
|
||||||
if (cat_node.style == undefined) {
|
|
||||||
debug("ERROR: supplied cat_node " + cat_node +
|
if (cat_unread == 0) {
|
||||||
" has no styles. WTF?");
|
if (cat_node.style == undefined) {
|
||||||
return;
|
debug("ERROR: supplied cat_node " + cat_node +
|
||||||
}
|
" has no styles. WTF?");
|
||||||
if (hide) {
|
return;
|
||||||
//cat_node.style.display = "none";
|
}
|
||||||
Effect.Fade(cat_node, {duration : 0.3,
|
if (hide) {
|
||||||
queue: { position: 'end', scope: 'CFADE-' + node.id, limit: 1 }});
|
//cat_node.style.display = "none";
|
||||||
|
Effect.Fade(cat_node, {duration : 0.3,
|
||||||
|
queue: { position: 'end', scope: 'CFADE-' + node.id, limit: 1 }});
|
||||||
|
} else {
|
||||||
|
cat_node.style.display = "list-item";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cat_node.style.display = "list-item";
|
try {
|
||||||
}
|
cat_node.style.display = "list-item";
|
||||||
} else {
|
} catch (e) {
|
||||||
try {
|
debug(e);
|
||||||
cat_node.style.display = "list-item";
|
}
|
||||||
} catch (e) {
|
|
||||||
debug(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user