From 177a359e4a2fc4bd782d3f3749f049c1d497341c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 May 2018 00:42:42 +0200 Subject: [PATCH] Only do article fade-in without fade-out+fade-in dance --- platypush/backend/http/static/js/widgets/rss-news.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/platypush/backend/http/static/js/widgets/rss-news.js b/platypush/backend/http/static/js/widgets/rss-news.js index b12374cb..e65092d4 100644 --- a/platypush/backend/http/static/js/widgets/rss-news.js +++ b/platypush/backend/http/static/js/widgets/rss-news.js @@ -53,13 +53,10 @@ $(document).ready(function() { $publishTime.appendTo($article); if ($newsElement.find('.article').length) { - $newsElement.find('.article').fadeOut('slow', function() { - $(this).remove(); - $article.hide().appendTo($newsElement).fadeIn(); - }); - } else { - $article.hide().appendTo($newsElement).fadeIn(); + $newsElement.find('.article').remove(); } + + $article.hide().appendTo($newsElement).fadeIn(); }; var initWidget = function() {