annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents:
diff changeset
1 $(document).on "click", ".js-form-main-clear", (e) ->
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents:
diff changeset
2 e.preventDefault()
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents:
diff changeset
3 $(e.target).parents("form").find(".js-form-main")
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents:
diff changeset
4 .val("")
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents:
diff changeset
5 .focus()