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
1 changed files with 3 additions and 6 deletions

View File

@ -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() {