From: Andrew Dolgov Date: Thu, 9 Aug 2007 06:56:11 +0000 (+0100) Subject: make 'v' hotkey work in CDM mode X-Git-Tag: 1.2.14~126 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e4914b62755d3dddc42cd3d6a283978338800f57;p=tt-rss.git make 'v' hotkey work in CDM mode --- diff --git a/functions.js b/functions.js index 6ba37811..d2e0c016 100644 --- a/functions.js +++ b/functions.js @@ -1762,3 +1762,4 @@ function openArticleInNewWindow(id) { exception_error("openArticleInNewWindow", e); } } + diff --git a/functions.php b/functions.php index 4f7bc336..3bf2a0b7 100644 --- a/functions.php +++ b/functions.php @@ -3917,7 +3917,9 @@ $add_class = ""; } - print "
"; + print "
"; print "
"; diff --git a/tt-rss.css b/tt-rss.css index a878b295..5544e3cb 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -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; diff --git a/tt-rss.js b/tt-rss.js index 10f1a7ef..1a459052 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -715,3 +715,4 @@ function feedEditSave() { } } + diff --git a/viewfeed.js b/viewfeed.js index 633d883b..1a3d775f 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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; +}