dismiss articles: properly reset active_post_id

This commit is contained in:
Andrew Dolgov 2010-11-13 15:38:02 +03:00
parent ac743c8321
commit 35c0e3a275
1 changed files with 4 additions and 1 deletions

View File

@ -2191,6 +2191,8 @@ function dismissArticle(id) {
new Effect.Fade(elem, {duration : 0.5});
active_post_id = false;
} catch (e) {
exception_error("dismissArticle", e);
}
@ -2206,7 +2208,8 @@ function dismissSelectedArticles() {
for (var i = 0; i < ids.length; i++) {
var elem = $("RROW-" + ids[i]);
if (elem.className && elem.className.match("Selected")) {
if (elem.className && elem.className.match("Selected") &&
ids[i] != active_post_id) {
new Effect.Fade(elem, {duration : 0.5});
sel.push(ids[i]);
} else {