aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-04-07 20:53:03 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-04-07 20:53:03 -0400
commit16990cb8368fb042adef8bdd71b1005513befc0c (patch)
treec6a2ec9d9b3271a5adf739429d00db456766084e /static
parent09ee11a0c8b5a3fe10193621361de555bf3918ea (diff)
parent8b0582d44150a5840a03adec8ac87663020564a4 (diff)
downloadfamille-flask-16990cb8368fb042adef8bdd71b1005513befc0c.tar.gz
Merge branch 'production'HEADmaster
Diffstat (limited to 'static')
-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){