mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 14:41:29 +00:00
add dropout effect when hiding read feeds
This commit is contained in:
@@ -193,7 +193,7 @@ function toggleCollapseCat(cat) {
|
|||||||
var cat_list = document.getElementById("FCATLIST-" + cat).parentNode;
|
var cat_list = document.getElementById("FCATLIST-" + cat).parentNode;
|
||||||
var caption = document.getElementById("FCAP-" + cat);
|
var caption = document.getElementById("FCAP-" + cat);
|
||||||
|
|
||||||
if (cat_list.className.match("invisible")) {
|
/* if (cat_list.className.match("invisible")) {
|
||||||
cat_list.className = "";
|
cat_list.className = "";
|
||||||
caption.innerHTML = caption.innerHTML.replace("...", "");
|
caption.innerHTML = caption.innerHTML.replace("...", "");
|
||||||
if (cat == 0) {
|
if (cat == 0) {
|
||||||
@@ -205,7 +205,10 @@ function toggleCollapseCat(cat) {
|
|||||||
if (cat == 0) {
|
if (cat == 0) {
|
||||||
setCookie("ttrss_vf_uclps", "1");
|
setCookie("ttrss_vf_uclps", "1");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
} */
|
||||||
|
|
||||||
|
Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5 });
|
||||||
|
|
||||||
new Ajax.Request("backend.php?op=feeds&subop=collapse&cid=" +
|
new Ajax.Request("backend.php?op=feeds&subop=collapse&cid=" +
|
||||||
param_escape(cat));
|
param_escape(cat));
|
||||||
|
|||||||
@@ -1009,16 +1009,20 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
|
|||||||
// debug(node.childNodes[i].id + " --> " + has_unread);
|
// debug(node.childNodes[i].id + " --> " + has_unread);
|
||||||
|
|
||||||
if (hide && !has_unread) {
|
if (hide && !has_unread) {
|
||||||
node.childNodes[i].style.display = "none";
|
//node.childNodes[i].style.display = "none";
|
||||||
|
Effect.DropOut(node.childNodes[i], {duration : 0.3});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hide) {
|
if (!hide) {
|
||||||
node.childNodes[i].style.display = "list-item";
|
node.childNodes[i].style.display = "list-item";
|
||||||
|
//Effect.Appear(node.childNodes[i], {duration : 0.3});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_unread) {
|
if (has_unread) {
|
||||||
node.childNodes[i].style.display = "list-item";
|
node.childNodes[i].style.display = "list-item";
|
||||||
cat_unread++;
|
cat_unread++;
|
||||||
|
//Effect.Appear(node.childNodes[i], {duration : 0.3});
|
||||||
|
//Effect.Highlight(node.childNodes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3420,10 +3420,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($collapsed == "t" || $collapsed == "1") {
|
if ($collapsed == "t" || $collapsed == "1") {
|
||||||
$holder_class = "invisible";
|
$holder_class = "feedCatHolder";
|
||||||
|
$holder_style = "display:none;";
|
||||||
$ellipsis = "...";
|
$ellipsis = "...";
|
||||||
} else {
|
} else {
|
||||||
$holder_class = "feedCatHolder";
|
$holder_class = "feedCatHolder";
|
||||||
|
$holder_style = "";
|
||||||
$ellipsis = "";
|
$ellipsis = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3442,7 +3444,7 @@
|
|||||||
|
|
||||||
// !!! NO SPACE before <ul...feedCatList - breaks firstChild DOM function
|
// !!! NO SPACE before <ul...feedCatList - breaks firstChild DOM function
|
||||||
// -> keyboard navigation, etc.
|
// -> keyboard navigation, etc.
|
||||||
print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\">";
|
print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
printFeedEntry($feed_id, $class, $feed, $unread,
|
printFeedEntry($feed_id, $class, $feed, $unread,
|
||||||
|
|||||||
Reference in New Issue
Block a user