view app/assets/javascripts/form_clear_main.coffee @ 395:26f8c634052c

Complete rework.
author nanaya <me@myconan.net>
date Sat, 27 Jun 2015 14:46:01 +0900
parents
children
line wrap: on
line source

$(document).on "click", ".js-form-main-clear", (e) ->
  e.preventDefault()
  $(e.target).parents("form").find(".js-form-main")
    .val("")
    .focus()