hideOrShowFeedsCategory: do not hide active feeds, hide errors
This commit is contained in:
parent
ca8e3d75f4
commit
b1b3344b82
1 changed files with 3 additions and 3 deletions
|
@ -960,9 +960,9 @@ function hideOrShowFeedsCategory(cat_id, hide) {
|
||||||
nodes.each(function(node) {
|
nodes.each(function(node) {
|
||||||
|
|
||||||
var is_unread = node.hasClassName("Unread") ||
|
var is_unread = node.hasClassName("Unread") ||
|
||||||
|
node.hasClassName("Selected") ||
|
||||||
(node.hasClassName("virt") &&
|
(node.hasClassName("virt") &&
|
||||||
getInitParam("hide_read_shows_special")) ||
|
getInitParam("hide_read_shows_special"));
|
||||||
node.hasClassName("error");
|
|
||||||
|
|
||||||
if (hide && !is_unread) {
|
if (hide && !is_unread) {
|
||||||
Effect.Fade(node, {duration : 0.3,
|
Effect.Fade(node, {duration : 0.3,
|
||||||
|
@ -975,7 +975,7 @@ function hideOrShowFeedsCategory(cat_id, hide) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cat_node) {
|
if (cat_node) {
|
||||||
if (hide && cat_unread == 0) {
|
if (hide && cat_unread == 0 && !cat_node.hasClassName("Selected")) {
|
||||||
Effect.Fade(cat_node, {duration : 0.3,
|
Effect.Fade(cat_node, {duration : 0.3,
|
||||||
queue: { position: 'end', scope: 'CFADE-' + cat_node.id, limit: 1 }});
|
queue: { position: 'end', scope: 'CFADE-' + cat_node.id, limit: 1 }});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue