]> git.wh0rd.org - tt-rss.git/commitdiff
showArticleInHeadlines: abort when row is missing
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 10 Oct 2007 12:09:09 +0000 (13:09 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 10 Oct 2007 12:09:09 +0000 (13:09 +0100)
viewfeed.js

index 6a20ae3358317b33c5a825a513fc6fbdd908e1ef..273e2d91b4d5b7b7d77229e77f0cb26751a02ac2 100644 (file)
@@ -213,6 +213,9 @@ function showArticleInHeadlines(id) {
                cleanSelected("headlinesList");
        
                var crow = document.getElementById("RROW-" + id);
+
+               if (!crow) return;
+
                var article_is_unread = crow.className.match("Unread");
                        
                crow.className = crow.className.replace("Unread", "");