]> git.wh0rd.org Git - tt-rss.git/commitdiff
make 'v' hotkey work in CDM mode
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 06:56:11 +0000 (07:56 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 06:56:11 +0000 (07:56 +0100)
functions.js
functions.php
tt-rss.css
tt-rss.js
viewfeed.js

index 6ba37811e4d3b2ad0b37aaf612011767299e52a5..d2e0c016db8d04b9ad85cfe37fbfce26b6948e8b 100644 (file)
@@ -1762,3 +1762,4 @@ function openArticleInNewWindow(id) {
                exception_error("openArticleInNewWindow", e);
        }
 }
+
index 4f7bc336e891c20d5dff939eb88277cb57f721ca..3bf2a0b7d03e12178a65903f9bb075022f858ef7 100644 (file)
                                                $add_class = "";
                                        }       
                                        
-                                       print "<div class=\"cdmArticle$add_class\" id=\"RROW-$id\">";
+                                       print "<div class=\"cdmArticle$add_class\" 
+                                               id=\"RROW-$id\" onmouseover='cdmMouseIn(this)' 
+                                               onmouseout='cdmMouseOut(this)'>";
 
                                        print "<div class=\"cdmHeader\">";
 
index a878b2958ae76dc6d0cd1de427f36f0315efafaf..5544e3cb0f3e9a91b008cf0120ffd5fbbc9b0c60 100644 (file)
@@ -845,6 +845,10 @@ td.hlFeed {
        text-align : right;
 }
 
+div.cdmArticle:hover {
+       background-color : white;
+}
+
 div.cdmArticle {
        border-color : #c0c0c0;
        border-width : 0px 0px 1px 0px;
@@ -854,6 +858,10 @@ div.cdmArticle {
        padding : 10px;
 }
 
+div.cdmArticleUnread:hover {
+       background-color : white;
+}
+
 div.cdmArticleUnread {
        border-color : #c0c0c0;
        border-width : 0px 0px 1px 0px;
@@ -881,6 +889,10 @@ div.cdmHeader {
        padding-bottom : 5px;
 }
 
+div.cdmArticleUnread div.cdmHeader a {
+       color : black;
+}
+
 div.cdmFooter {
        font-size : 9pt;
        color : gray;
index 10f1a7ef321a3a138108d63fc026464b4c129816..1a4590522c744fca748c53e2bd66aa26e33ff01b 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -715,3 +715,4 @@ function feedEditSave() {
        } 
 }
 
+
index 633d883b79ae51ce47dc35890b2285b2dbaa5231..1a3d775ffde67dd8e479dbf6b6b71f0efd2241a5 100644 (file)
@@ -921,3 +921,19 @@ function cache_invalidate(id) {
 function getActiveArticleId() {
        return active_post_id;
 }
+
+function cdmMouseIn(elem) {
+       try {
+               if (elem.id && elem.id.match("RROW-")) {
+                       var id = elem.id.replace("RROW-", "");
+                       active_post_id = id;
+               }
+       } catch (e) {
+               exception_error("cdmMouseIn", e);
+       }
+
+}
+
+function cdmMouseOut(elem) {
+       active_post_id = false;
+}