From: Andrew Dolgov Date: Sat, 13 Nov 2010 12:38:02 +0000 (+0300) Subject: dismiss articles: properly reset active_post_id X-Git-Tag: 1.5.0~239 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=35c0e3a27540c35a82b150c4e0df964a9fcef074;p=tt-rss.git dismiss articles: properly reset active_post_id --- 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 {