dismiss articles: properly reset active_post_id

master
Andrew Dolgov 14 years ago
parent ac743c8321
commit 35c0e3a275

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

Loading…
Cancel
Save