From 35c0e3a27540c35a82b150c4e0df964a9fcef074 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Nov 2010 15:38:02 +0300 Subject: [PATCH] dismiss articles: properly reset active_post_id --- viewfeed.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/viewfeed.js b/viewfeed.js index 4b65167d..ebf47924 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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 { -- 2.39.5