showArticleInHeadlines: add exception handling
This commit is contained in:
parent
71d277deec
commit
868d0ed27e
31
viewfeed.js
31
viewfeed.js
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue