1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 06:05:55 +00:00

CDM tweaks, mark article as unread when using 'v' in CDM

This commit is contained in:
Andrew Dolgov
2007-08-09 09:23:48 +01:00
parent 82a7286215
commit e2ccbfab0a
4 changed files with 62 additions and 23 deletions

View File

@@ -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);
}
}
}
}