comparison app/assets/javascripts/pastes.js @ 79:50b8738d6428

Use (modified) autosize to automatically resize textarea.
author Edho Arief <edho@myconan.net>
date Mon, 08 Oct 2012 14:00:36 +0700
parents 6ae3333a0251
children e8a0e82213cd
comparison
equal deleted inserted replaced
78:6ae3333a0251 79:50b8738d6428
5 $('#paste_paste').val(''); 5 $('#paste_paste').val('');
6 $('#paste_paste').focus(); 6 $('#paste_paste').focus();
7 return false; 7 return false;
8 }); 8 });
9 $(document).ready(function() { 9 $(document).ready(function() {
10 $('#paste_paste').autosize({ className: 'mirrored_text row-fluid', append: "\n"});
10 $('#paste_paste').focus(); 11 $('#paste_paste').focus();
11 }) 12 })