From 1da5179c5df7eed1fd14b4cee70dd2703679995c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 Mar 2013 13:04:41 +0400 Subject: [PATCH] add active class for unexpanded cdm --- cdm.css | 7 ++++++- js/viewfeed.js | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cdm.css b/cdm.css index db357bec..cb0a78f2 100644 --- a/cdm.css +++ b/cdm.css @@ -132,6 +132,10 @@ div.cdm.expanded.Unread.Selected div.cdmHeader, div.cdm.expanded.Selected div.cd background : #FFEA9E; } +div.cdm.active.Selected div.cdmHeader { + background : #FFEA9E; +} + div.cdm.expanded.even.Unread, div.cdm.expanded.odd.Unread { background : white; } @@ -165,6 +169,7 @@ div.cdmHeader span.author { 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; } + diff --git a/js/viewfeed.js b/js/viewfeed.js index 0a65f3f3..e32d3a99 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1392,6 +1392,7 @@ function cdmExpandArticle(id) { Element.hide(elem); Element.show("CEXC-" + getActiveArticleId()); Element.hide(collapse); + $("RROW-" + getActiveArticleId()).removeClassName("active"); } setActiveArticleId(id); @@ -1413,6 +1414,7 @@ function cdmExpandArticle(id) { Element.show(elem); Element.hide("CEXC-" + id); Element.show(collapse); + $("RROW-" + id).addClassName("active"); } var new_offset = $("RROW-" + id).offsetTop; -- 2.39.5