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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user