1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
GIST/web/app/js/app.js
2015-05-04 22:12:26 +02:00

4 lines
121 B
JavaScript

$('textarea').on('keyup change', function() {
$(this).attr('rows', Math.max(10, $(this).val().split("\n").length));
});