Mercurial > zeropaste
view app/assets/javascripts/pastes.js @ 86:09226d9a09f2
Gem update.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 28 Oct 2012 02:21:15 +0000 |
parents | 50b8738d6428 |
children | e8a0e82213cd |
line wrap: on
line source
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).on('click', '#reset_paste', function() { $('#paste_paste').val(''); $('#paste_paste').focus(); return false; }); $(document).ready(function() { $('#paste_paste').autosize({ className: 'mirrored_text row-fluid', append: "\n"}); $('#paste_paste').focus(); })