comparison app/assets/javascripts/pastes.js @ 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 a930c717654c
children 37a05df38236
comparison
equal deleted inserted replaced
43:bc088ddb470f 44:6a9e0c09bbd8
5 $('#reset_paste').click(function() { 5 $('#reset_paste').click(function() {
6 $('#paste_paste').val(''); 6 $('#paste_paste').val('');
7 $('#paste_paste').focus(); 7 $('#paste_paste').focus();
8 return false; 8 return false;
9 }); 9 });
10 $(window).resize(function() {
11 $('#paste_paste').css('width', '100%');
12 })
10 }) 13 })