]> git.wh0rd.org - tt-rss.git/commitdiff
view: abort when requested RROW is not present
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 08:27:26 +0000 (12:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 08:27:26 +0000 (12:27 +0400)
js/viewfeed.js

index 34548ea36eaed2d27b5a8ae8ba7df155b3245951..34235eba2b78d36e504a548713096b396b2527b8 100644 (file)
@@ -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;