]> git.wh0rd.org Git - tt-rss.git/commitdiff
dismiss articles: properly reset active_post_id
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 13 Nov 2010 12:38:02 +0000 (15:38 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 13 Nov 2010 12:38:02 +0000 (15:38 +0300)
viewfeed.js

index 4b65167d6433440b6fb2f421a7e3c6e439d71a7f..ebf479243e8f2231ba19f644de3bd59c604dd2a2 100644 (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 {