diff app/assets/javascripts/pastes.js @ 45:37a05df38236

Immediately focus on input box.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 02:38:35 +0700
parents 6a9e0c09bbd8
children 5635c91f4bfd
line wrap: on
line diff
--- a/app/assets/javascripts/pastes.js	Thu Oct 04 02:37:41 2012 +0700
+++ b/app/assets/javascripts/pastes.js	Thu Oct 04 02:38:35 2012 +0700
@@ -10,4 +10,5 @@
   $(window).resize(function() {
     $('#paste_paste').css('width', '100%');
   })
+  $('#paste_paste').focus();
 })