Mercurial > zeropaste
annotate app/assets/javascripts/new_paste.coffee @ 388:797e351b2e2b
Remove alerts and title from show.
Already shown by layout.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 07 Jun 2015 10:33:17 +0900 |
parents | 7ba798dee39d |
children |
rev | line source |
---|---|
383
af27800e9a0d
As it turned out delegating with `.click` doesn't work.
nanaya <me@myconan.net>
parents:
382
diff
changeset
|
1 $(document).on "click", "#reset_paste", (e) -> |
382 | 2 e.preventDefault() |
384
7ba798dee39d
No need to assign to variable when it can be just chained.
nanaya <me@myconan.net>
parents:
383
diff
changeset
|
3 $("#paste_paste") |
7ba798dee39d
No need to assign to variable when it can be just chained.
nanaya <me@myconan.net>
parents:
383
diff
changeset
|
4 .val("") |
7ba798dee39d
No need to assign to variable when it can be just chained.
nanaya <me@myconan.net>
parents:
383
diff
changeset
|
5 .focus() |