summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.js1
-rw-r--r--functions.php4
-rw-r--r--tt-rss.css12
-rw-r--r--tt-rss.js1
-rw-r--r--viewfeed.js16
5 files changed, 33 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index 6ba37811e..d2e0c016d 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 4f7bc336e..3bf2a0b7d 100644
--- a/functions.php
+++ b/functions.php
@@ -3917,7 +3917,9 @@
$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\">";
diff --git a/tt-rss.css b/tt-rss.css
index a878b2958..5544e3cb0 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 10f1a7ef3..1a4590522 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -715,3 +715,4 @@ function feedEditSave() {
}
}
+
diff --git a/viewfeed.js b/viewfeed.js
index 633d883b7..1a3d775ff 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;
+}