comparison app/assets/javascripts/pastes.js @ 76:5635c91f4bfd

Only allow resize input box vertically.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 15:40:39 +0700
parents 37a05df38236
children 6ae3333a0251
comparison
equal deleted inserted replaced
75:8f6a0204b2a7 76:5635c91f4bfd
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 })
13 $('#paste_paste').focus(); 10 $('#paste_paste').focus();
14 }) 11 })