]> git.wh0rd.org Git - tt-rss.git/commitdiff
dismissArticle: check if target element exists
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 17:58:05 +0000 (21:58 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 17:58:05 +0000 (21:58 +0400)
js/viewfeed.js

index 27d0c01b451896bf752001d2d2a5d6ac30eb6806..0ef890622d65fb02be681a2088ea8b895f8d054f 100644 (file)
@@ -1536,6 +1536,8 @@ function dismissArticle(id) {
        try {
                var elem = $("RROW-" + id);
 
+               if (!elem) return;
+
                toggleUnread(id, 0, true);
 
                new Effect.Fade(elem, {duration : 0.5});