summaryrefslogtreecommitdiff
path: root/digest.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-09-13 08:56:50 +0400
committerAndrew Dolgov <[email protected]>2010-09-13 08:56:50 +0400
commit2f57dff5e4ba3060c560a77b7634c663d4e19d01 (patch)
treefb794eacf6d5730caa482a708a442e17d8248cb3 /digest.js
parented6c208dda7a1ff2825a34786d795419f1536dac (diff)
digest: mark read article on zoom
Diffstat (limited to 'digest.js')
-rw-r--r--digest.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/digest.js b/digest.js
index 9828dc7c2..a529db7fd 100644
--- a/digest.js
+++ b/digest.js
@@ -130,6 +130,15 @@ function zoom(elem, article_id) {
elem.onclick = false;
elem.style.cursor = "auto";
+
+ catchup_article(article_id,
+ function() {
+ window.clearTimeout(_view_update_timeout);
+ _view_update_timeout = window.setTimeout("view_update()", 500);
+ $("A-" + article_id).className = "read";
+ });
+
+
} else {
elem.innerHTML = __("Error: unable to load article.");
}
@@ -199,7 +208,7 @@ function view(article_id, dismiss_only) {
catchup_article(article_id,
function() {
window.clearTimeout(_view_update_timeout);
- _view_update_timeout = window.setTimeout("view_update()", 1000);
+ _view_update_timeout = window.setTimeout("view_update()", 500);
});
return dismiss_only != true;
@@ -372,7 +381,7 @@ function add_headline_entry(article, feed, no_effects) {
if (article.excerpt.trim() == "")
article.excerpt = __("Click to expand article.");
- var tmp_html = "<li id=\"A-"+article.id+"\" "+style+">" +
+ var tmp_html = "<li id=\"A-"+article.id+"\" "+style+" class=\"unread\">" +
icon_part +
"<div class='digest-check'>" +