fixed comment js. fadeToggle is only supported in jquery >= 1.4.4

This commit is contained in:
danielvincent 2010-12-04 17:37:57 -08:00
parent 948707ea23
commit 105c788bf8

View file

@ -119,9 +119,12 @@ var Stream = {
commentBlockMore.removeClass("hidden"); commentBlockMore.removeClass("hidden");
}); });
} else { } else {
commentBlock.fadeToggle(150, function() { if(commentBlock.hasClass("hidden")) {
commentBlock.toggleClass("hidden"); commentBlock.fadeIn(150);
}); }else{
commentBlock.hide();
}
commentBlock.toggleClass("hidden");
} }
$this.html(text.replace((show) ? "show" : "hide", (show) ? "hide" : "show")); $this.html(text.replace((show) ? "show" : "hide", (show) ? "hide" : "show"));