4,090
edits
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
'<p class="article-description">' + description + '</p>' | '<p class="article-description">' + description + '</p>' | ||
); | ); | ||
// Apply the fade-out effect to the #list element | |||
$('#list').addClass('fade-out'); | |||
}); | }); | ||
Line 55: | Line 58: | ||
// Hide the fixed column when clicked outside or on the close button | // Hide the fixed column when clicked outside or on the close button | ||
if (event.target.id === 'close-button' || !$.contains(this, event.target)) { | if (event.target.id === 'close-button' || !$.contains(this, event.target)) { | ||
// Remove the fade-out class when hiding the fixed column | |||
$('#list').removeClass('fade-out'); | |||
$('#show-article').css('display', 'none'); | $('#show-article').css('display', 'none'); | ||
} | } |