diff options
author | Andrew Dolgov <[email protected]> | 2007-08-09 09:23:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-09 09:23:48 +0100 |
commit | e2ccbfab0a8e734df65ad89f817e0b8e10a3481c (patch) | |
tree | fe79715a209972961adaffc1cd1fa1781dc30e42 /functions.js | |
parent | 82a7286215539cde449988979098034d77c36178 (diff) |
CDM tweaks, mark article as unread when using 'v' in CDM
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 8 |
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); + } + } } } |