add active class for unexpanded cdm

This commit is contained in:
Andrew Dolgov 2013-03-22 13:04:41 +04:00
parent 472219f073
commit 1da5179c5d
2 changed files with 8 additions and 1 deletions

View File

@ -132,6 +132,10 @@ div.cdm.expanded.Unread.Selected div.cdmHeader, div.cdm.expanded.Selected div.cd
background : #FFEA9E; background : #FFEA9E;
} }
div.cdm.active.Selected div.cdmHeader {
background : #FFEA9E;
}
div.cdm.expanded.even.Unread, div.cdm.expanded.odd.Unread { div.cdm.expanded.even.Unread, div.cdm.expanded.odd.Unread {
background : white; background : white;
} }
@ -165,6 +169,7 @@ div.cdmHeader span.author {
font-size : 11px; font-size : 11px;
} }
div.cdm.expanded div.cdmHeader a.title { div.cdm.expanded div.cdmHeader a.title, div.cdm.active div.cdmHeader a.title {
font-size : 13px; font-size : 13px;
} }

View File

@ -1392,6 +1392,7 @@ function cdmExpandArticle(id) {
Element.hide(elem); Element.hide(elem);
Element.show("CEXC-" + getActiveArticleId()); Element.show("CEXC-" + getActiveArticleId());
Element.hide(collapse); Element.hide(collapse);
$("RROW-" + getActiveArticleId()).removeClassName("active");
} }
setActiveArticleId(id); setActiveArticleId(id);
@ -1413,6 +1414,7 @@ function cdmExpandArticle(id) {
Element.show(elem); Element.show(elem);
Element.hide("CEXC-" + id); Element.hide("CEXC-" + id);
Element.show(collapse); Element.show(collapse);
$("RROW-" + id).addClassName("active");
} }
var new_offset = $("RROW-" + id).offsetTop; var new_offset = $("RROW-" + id).offsetTop;