Mercurial > zeropaste
annotate app/assets/javascripts/pastes.js @ 77:2fb80ca710e0
Added cache control so it's cached by browser the first time loaded.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 10:49:23 -0700 |
parents | 5635c91f4bfd |
children | 6ae3333a0251 |
rev | line source |
---|---|
2 | 1 // Place all the behaviors and hooks related to the matching controller here. |
2 // All this logic will automatically be available in application.js. | |
39 | 3 |
4 $(document).ready(function() { | |
5 $('#reset_paste').click(function() { | |
6 $('#paste_paste').val(''); | |
7 $('#paste_paste').focus(); | |
8 return false; | |
9 }); | |
45
37a05df38236
Immediately focus on input box.
Edho Arief <edho@myconan.net>
parents:
44
diff
changeset
|
10 $('#paste_paste').focus(); |
39 | 11 }) |