animate show/hide comments

This commit is contained in:
marijus 2014-06-16 20:51:00 +02:00
parent 349e5d45ec
commit 4b1625dd16

View File

@ -134,12 +134,12 @@
function showHideComments(id) { function showHideComments(id) {
if( $('#collapsed-comments-' + id).is(':visible')) { if( $('#collapsed-comments-' + id).is(':visible')) {
$('#collapsed-comments-' + id).hide(); $('#collapsed-comments-' + id).slideUp();
$('#hide-comments-' + id).html(aStr['showmore']); $('#hide-comments-' + id).html(aStr['showmore']);
$('#hide-comments-total-' + id).show(); $('#hide-comments-total-' + id).show();
} }
else { else {
$('#collapsed-comments-' + id).show(); $('#collapsed-comments-' + id).slideDown();
$('#hide-comments-' + id).html(aStr['showfewer']); $('#hide-comments-' + id).html(aStr['showfewer']);
$('#hide-comments-total-' + id).hide(); $('#hide-comments-total-' + id).hide();
} }