Mercurial > zeropaste
annotate app/assets/javascripts/pastes.js @ 78:6ae3333a0251
Moved out link click listener from $(document).ready.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 07 Oct 2012 16:05:30 +0700 |
parents | 5635c91f4bfd |
children | 50b8738d6428 |
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 |
78
6ae3333a0251
Moved out link click listener from $(document).ready.
Edho Arief <edho@myconan.net>
parents:
76
diff
changeset
|
4 $(document).on('click', '#reset_paste', function() { |
6ae3333a0251
Moved out link click listener from $(document).ready.
Edho Arief <edho@myconan.net>
parents:
76
diff
changeset
|
5 $('#paste_paste').val(''); |
6ae3333a0251
Moved out link click listener from $(document).ready.
Edho Arief <edho@myconan.net>
parents:
76
diff
changeset
|
6 $('#paste_paste').focus(); |
6ae3333a0251
Moved out link click listener from $(document).ready.
Edho Arief <edho@myconan.net>
parents:
76
diff
changeset
|
7 return false; |
6ae3333a0251
Moved out link click listener from $(document).ready.
Edho Arief <edho@myconan.net>
parents:
76
diff
changeset
|
8 }); |
39 | 9 $(document).ready(function() { |
45
37a05df38236
Immediately focus on input box.
Edho Arief <edho@myconan.net>
parents:
44
diff
changeset
|
10 $('#paste_paste').focus(); |
39 | 11 }) |