]> git.wh0rd.org - tt-rss.git/commitdiff
add active class for unexpanded cdm
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 22 Mar 2013 09:04:41 +0000 (13:04 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 22 Mar 2013 09:04:41 +0000 (13:04 +0400)
cdm.css
js/viewfeed.js

diff --git a/cdm.css b/cdm.css
index db357beca5091996ef7bbdc29a3c0373d5b8ad31..cb0a78f2b079d69733669d77e95204ddd5e27192 100644 (file)
--- 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;
 }
+
index 0a65f3f3eee788397ed3661d99cbb77c8b65654e..e32d3a990c9d8edb9c13c35aa87f4a2822c8f9b3 100644 (file)
@@ -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;