changeset 44:6a9e0c09bbd8

Ensure input box's width is always 100%.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 02:37:41 +0700
parents bc088ddb470f
children 37a05df38236
files app/assets/javascripts/pastes.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/assets/javascripts/pastes.js	Thu Oct 04 02:13:46 2012 +0700
+++ b/app/assets/javascripts/pastes.js	Thu Oct 04 02:37:41 2012 +0700
@@ -7,4 +7,7 @@
     $('#paste_paste').focus();
     return false;
   });
+  $(window).resize(function() {
+    $('#paste_paste').css('width', '100%');
+  })
 })