summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
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);
+ }
+ }
}
}