]> git.wh0rd.org Git - tt-rss.git/commitdiff
Remove content when an article is dismissed
authorJeffrey Tolar <tolar.jeffrey@gmail.com>
Sat, 22 Jun 2013 04:30:55 +0000 (23:30 -0500)
committerJeffrey Tolar <tolar.jeffrey@gmail.com>
Sat, 22 Jun 2013 04:30:55 +0000 (23:30 -0500)
js/viewfeed.js

index b7e321d735497e6b7b01ec8d3698a2f877536826..6d0941181628603509d9feea910570f6375f3f7e 100644 (file)
@@ -1611,6 +1611,10 @@ function dismissArticle(id) {
 
                new Effect.Fade(elem, {duration : 0.5});
 
+               // Remove the content, too
+               var elem_content = $("CICD-" + id);
+               Element.remove(elem_content);
+
                if (id == getActiveArticleId()) {
                        setActiveArticleId(0);
                }
@@ -1634,6 +1638,10 @@ function dismissSelectedArticles() {
                                        ids[i] != getActiveArticleId()) {
                                new Effect.Fade(elem, {duration : 0.5});
                                sel.push(ids[i]);
+
+                               // Remove the content, too
+                               var elem_content = $("CICD-" + ids[i]);
+                               Element.remove(elem_content);
                        } else {
                                tmp.push(ids[i]);
                        }
@@ -1661,6 +1669,10 @@ function dismissReadArticles() {
                                        !elem.hasClassName("Selected")) {
 
                                new Effect.Fade(elem, {duration : 0.5});
+
+                               // Remove the content, too
+                               var elem_content = $("CICD-" + ids[i]);
+                               Element.remove(elem_content);
                        } else {
                                tmp.push(ids[i]);
                        }