new category (un)collapse icons
This commit is contained in:
parent
e69fb880a3
commit
76d453330d
|
@ -371,6 +371,13 @@ function toggleCollapseCat(cat) {
|
||||||
Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5,
|
Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5,
|
||||||
afterFinish: toggleCollapseCat_af });
|
afterFinish: toggleCollapseCat_af });
|
||||||
|
|
||||||
|
var img = cat_elem.getElementsByTagName("IMG")[0];
|
||||||
|
|
||||||
|
if (img.src.match("-collapse"))
|
||||||
|
img.src = img.src.replace("-collapse", "-uncollapse")
|
||||||
|
else
|
||||||
|
img.src = img.src.replace("-uncollapse", "-collapse")
|
||||||
|
|
||||||
new Ajax.Request("backend.php",
|
new Ajax.Request("backend.php",
|
||||||
{ parameters: "backend.php?op=feeds&subop=collapse&cid=" +
|
{ parameters: "backend.php?op=feeds&subop=collapse&cid=" +
|
||||||
param_escape(cat) } );
|
param_escape(cat) } );
|
||||||
|
|
|
@ -4275,9 +4275,11 @@
|
||||||
if ($hidden) {
|
if ($hidden) {
|
||||||
$holder_style = "display:none;";
|
$holder_style = "display:none;";
|
||||||
$ellipsis = "…";
|
$ellipsis = "…";
|
||||||
|
$collapse_pic = "cat-uncollapse.png";
|
||||||
} else {
|
} else {
|
||||||
$holder_style = "";
|
$holder_style = "";
|
||||||
$ellipsis = "";
|
$ellipsis = "";
|
||||||
|
$collapse_pic = "cat-collapse.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
$catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread";
|
$catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread";
|
||||||
|
@ -4295,7 +4297,7 @@
|
||||||
print "<li class=\"$cat_class\" id=\"FCAT-$cat_id\">
|
print "<li class=\"$cat_class\" id=\"FCAT-$cat_id\">
|
||||||
<img onclick=\"toggleCollapseCat($cat_id)\" class=\"catCollapse\"
|
<img onclick=\"toggleCollapseCat($cat_id)\" class=\"catCollapse\"
|
||||||
title=\"".__('Click to collapse category')."\"
|
title=\"".__('Click to collapse category')."\"
|
||||||
src=\"images/cat-collapse.png\"><span class=\"$inner_title_class\"
|
src=\"images/$collapse_pic?\"><span class=\"$inner_title_class\"
|
||||||
id=\"FCATN-$cat_id\" $browse_cat_link/>$tmp_category</span>";
|
id=\"FCATN-$cat_id\" $browse_cat_link/>$tmp_category</span>";
|
||||||
|
|
||||||
print "<span id=\"FCAP-$cat_id\">";
|
print "<span id=\"FCAP-$cat_id\">";
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -134,6 +134,10 @@ ul.feedList li.feedCat, ul.feedList li.virtCat {
|
||||||
|
|
||||||
ul.feedList img.catCollapse {
|
ul.feedList img.catCollapse {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
|
vertical-align : middle;
|
||||||
|
width : 11px;
|
||||||
|
height : 11px;
|
||||||
|
padding-bottom : 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.feedList span.catTitle {
|
ul.feedList span.catTitle {
|
||||||
|
|
Loading…
Reference in New Issue