fix markdown preview

This commit is contained in:
Henrique Dias
2016-02-07 09:34:28 +00:00
parent 49274536a4
commit 1dbe820b42
6 changed files with 63 additions and 75 deletions

View File

@@ -28,9 +28,9 @@ $(document).on('ready pjax:success', function() {
//TODO: navbar titles changing effect when changing page
// Auto Grow Textarea
function autoGrow(element) {
this.style.height = "5px";
this.style.height = (this.scrollHeight) + "px";
function autoGrow() {
this.style.height = '5px';
this.style.height = this.scrollHeight + 'px';
}
$("textarea").each(autoGrow);