Only do article fade-in without fade-out+fade-in dance

This commit is contained in:
Fabio Manganiello 2018-05-06 00:42:42 +02:00
parent 27d5f674c5
commit 177a359e4a

View file

@ -53,13 +53,10 @@ $(document).ready(function() {
$publishTime.appendTo($article); $publishTime.appendTo($article);
if ($newsElement.find('.article').length) { if ($newsElement.find('.article').length) {
$newsElement.find('.article').fadeOut('slow', function() { $newsElement.find('.article').remove();
$(this).remove();
$article.hide().appendTo($newsElement).fadeIn();
});
} else {
$article.hide().appendTo($newsElement).fadeIn();
} }
$article.hide().appendTo($newsElement).fadeIn();
}; };
var initWidget = function() { var initWidget = function() {