view app/assets/javascripts/pastes.js @ 44:6a9e0c09bbd8

Ensure input box's width is always 100%.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 02:37:41 +0700
parents a930c717654c
children 37a05df38236
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%');
  })
})