comparison 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
comparison
equal deleted inserted replaced
394:6feb8c2574a1 395:26f8c634052c
1 $(document).on "click", ".js-form-main-clear", (e) ->
2 e.preventDefault()
3 $(e.target).parents("form").find(".js-form-main")
4 .val("")
5 .focus()