view app/assets/javascripts/pastes.js @ 51:36d07f047ec2

Or maybe not. Still too long with b62. Backed out changeset ba29d6394863
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 04:23:00 +0700
parents 37a05df38236
children 5635c91f4bfd
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).ready(function() {
  $('#reset_paste').click(function() {
    $('#paste_paste').val('');
    $('#paste_paste').focus();
    return false;
  });
  $(window).resize(function() {
    $('#paste_paste').css('width', '100%');
  })
  $('#paste_paste').focus();
})