dismissArticle: check if target element exists

master
Andrew Dolgov 12 years ago
parent 1f3f503dc1
commit 0db3db2e37

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

Loading…
Cancel
Save