comparison app/assets/javascripts/new_paste.coffee @ 383:af27800e9a0d

As it turned out delegating with `.click` doesn't work.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:57:41 +0900
parents 8ceb373e32d8
children 7ba798dee39d
comparison
equal deleted inserted replaced
382:8ceb373e32d8 383:af27800e9a0d
1 $(document).click "#reset_paste", (e) -> 1 $(document).on "click", "#reset_paste", (e) ->
2 e.preventDefault() 2 e.preventDefault()
3 $form = $("#paste_paste") 3 $form = $("#paste_paste")
4 $form.val("").focus() 4 $form.val("").focus()