Mercurial > zeropaste
comparison app/assets/javascripts/pastes.js @ 39:a930c717654c
Add Clear button to the form.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 02:08:11 +0700 |
parents | 42de15334db1 |
children | 6a9e0c09bbd8 |
comparison
equal
deleted
inserted
replaced
38:91d3749cbff8 | 39:a930c717654c |
---|---|
1 // Place all the behaviors and hooks related to the matching controller here. | 1 // Place all the behaviors and hooks related to the matching controller here. |
2 // All this logic will automatically be available in application.js. | 2 // All this logic will automatically be available in application.js. |
3 | |
4 $(document).ready(function() { | |
5 $('#reset_paste').click(function() { | |
6 $('#paste_paste').val(''); | |
7 $('#paste_paste').focus(); | |
8 return false; | |
9 }); | |
10 }) |