From: Andrew Dolgov Date: Wed, 6 Feb 2013 08:27:26 +0000 (+0400) Subject: view: abort when requested RROW is not present X-Git-Tag: 1.7.0~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=be5a5cd26d6776f76119b788018e7fd95839c690;p=tt-rss.git view: abort when requested RROW is not present --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 34548ea3..34235eba 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -347,6 +347,10 @@ function article_callback2(transport, id) { function view(id) { try { + var crow = $("RROW-" + id); + + if (!crow) return; + console.log("loading article: " + id); var cached_article = cache_get("article:" + id); @@ -375,7 +379,6 @@ function view(id) { query = query + "&cids=" + cids_to_request.toString(); - var crow = $("RROW-" + id); var article_is_unread = crow.hasClassName("Unread"); active_post_id = id;