showArticleInHeadlines: add exception handling

This commit is contained in:
Andrew Dolgov 2007-08-24 08:56:13 +01:00
parent 71d277deec
commit 868d0ed27e
1 changed files with 18 additions and 13 deletions

View File

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