1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-25 11:57:42 +02:00

showArticleInHeadlines: add exception handling

This commit is contained in:
Andrew Dolgov 2007-08-24 08:56:13 +01:00
parent 71d277deec
commit 868d0ed27e

View File

@ -198,22 +198,27 @@ function render_article(article) {
function showArticleInHeadlines(id) {
cleanSelected("headlinesList");
try {
var crow = document.getElementById("RROW-" + id);
var article_is_unread = crow.className.match("Unread");
cleanSelected("headlinesList");
var crow = document.getElementById("RROW-" + id);
var article_is_unread = crow.className.match("Unread");
crow.className = crow.className.replace("Unread", "");
crow.className = crow.className.replace("Unread", "");
var upd_img_pic = document.getElementById("FUPDPIC-" + id);
if (upd_img_pic) {
upd_img_pic.src = "images/blank_icon.gif";
}
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
markHeadline(id);
var upd_img_pic = document.getElementById("FUPDPIC-" + id);
if (upd_img_pic) {
upd_img_pic.src = "images/blank_icon.gif";
}
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
markHeadline(id);
} catch (e) {
exception_error("showArticleInHeadlines", e);
}
}
function article_callback2(transport, id, feed_id) {