From e2ccbfab0a8e734df65ad89f817e0b8e10a3481c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2007 09:23:48 +0100 Subject: CDM tweaks, mark article as unread when using 'v' in CDM --- functions.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'functions.js') 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); + } + } } } -- cgit v1.2.3-54-g00ecf