From: Jeffrey Tolar Date: Sat, 22 Jun 2013 04:30:55 +0000 (-0500) Subject: Remove content when an article is dismissed X-Git-Tag: 1.9~97^2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=abba5dd4d4bffc530c9b76a2b88c79857b8ee6a4;p=tt-rss.git Remove content when an article is dismissed --- diff --git a/js/viewfeed.js b/js/viewfeed.js index b7e321d7..6d094118 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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]); }