diff 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
line wrap: on
line diff
--- a/app/assets/javascripts/pastes.js	Sun Oct 07 16:05:30 2012 +0700
+++ b/app/assets/javascripts/pastes.js	Mon Oct 08 14:00:36 2012 +0700
@@ -7,5 +7,6 @@
   return false;
 });
 $(document).ready(function() {
+  $('#paste_paste').autosize({ className: 'mirrored_text row-fluid', append: "\n"});
   $('#paste_paste').focus();
 })