diff 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
line wrap: on
line diff
--- a/app/assets/javascripts/new_paste.coffee	Sun Jun 07 02:56:01 2015 +0900
+++ b/app/assets/javascripts/new_paste.coffee	Sun Jun 07 02:57:41 2015 +0900
@@ -1,4 +1,4 @@
-$(document).click "#reset_paste", (e) ->
+$(document).on "click", "#reset_paste", (e) ->
   e.preventDefault()
   $form = $("#paste_paste")
   $form.val("").focus()