From: Andrew Dolgov Date: Sun, 31 Mar 2013 17:58:05 +0000 (+0400) Subject: dismissArticle: check if target element exists X-Git-Tag: 1.7.6~92 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0db3db2e3777f33064eb3601ac0dbcb3b64112dc;p=tt-rss.git dismissArticle: check if target element exists --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 27d0c01b..0ef89062 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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});