summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-09 09:23:48 +0100
committerAndrew Dolgov <[email protected]>2007-08-09 09:23:48 +0100
commite2ccbfab0a8e734df65ad89f817e0b8e10a3481c (patch)
treefe79715a209972961adaffc1cd1fa1781dc30e42 /functions.js
parent82a7286215539cde449988979098034d77c36178 (diff)
CDM tweaks, mark article as unread when using 'v' in CDM
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index d2e0c016d..a6aa133ef 100644
--- a/functions.js
+++ b/functions.js
@@ -70,9 +70,17 @@ function open_article_callback() {
if (xmlhttp_rpc.responseXML) {
var link = xmlhttp_rpc.responseXML.getElementsByTagName("link")[0];
+ var id = xmlhttp_rpc.responseXML.getElementsByTagName("id")[0];
if (link) {
window.open(link.firstChild.nodeValue, "_blank");
+
+ if (id) {
+ id = id.firstChild.nodeValue;
+ if (!document.getElementById("headlinesList")) {
+ window.setTimeout("toggleUnread(" + id + ", 0)", 100);
+ }
+ }
}
}