summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-06 12:27:26 +0400
committerAndrew Dolgov <[email protected]>2013-02-06 12:27:26 +0400
commitbe5a5cd26d6776f76119b788018e7fd95839c690 (patch)
treec43d33320fe30243eb5031a578cb276b6563597c /js
parent35be65a1da408c7fe87c33c062d777c04a4b8a85 (diff)
view: abort when requested RROW is not present
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 34548ea36..34235eba2 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;