Mercurial > zeropaste
view app/assets/javascripts/pastes.js @ 172:a44a24fd37a7
Gem updates. Including Rails to 3.2.11.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Wed, 09 Jan 2013 17:39:48 +0300 |
parents | e8a0e82213cd |
children |
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"}); $.autosize_box_fix($('.mirrored_text')); $('#paste_paste').focus(); })