dismissArticle: check if target element exists
This commit is contained in:
parent
1f3f503dc1
commit
0db3db2e37
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue