aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/famille.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/famille.js')
-rw-r--r--static/js/famille.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/static/js/famille.js b/static/js/famille.js
index 515afa2..cc53120 100644
--- a/static/js/famille.js
+++ b/static/js/famille.js
@@ -31,9 +31,8 @@ $(document).ready(function(){
var heading = $(this).parents(".media-heading");
heading.siblings(".comment-content").hide();
var textarea = heading.siblings(".comment-source").find("textarea");
- var row_count = textarea.val().split("\n").length + 1;
- textarea.attr("rows", row_count);
heading.siblings(".comment-source").show();
+ textarea.css("height", textarea[0].scrollHeight + 2);
});
$(".comment-source").submit(function(e){