Mercurial > zeropaste
view app/assets/javascripts/zp.new.coffee @ 380:2ddd61aca2c8
I18n. And refactor paste privacy settings form.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 07 Jun 2015 02:45:49 +0900 |
parents | 5a4d31e97937 |
children |
line wrap: on
line source
#= require jquery.autosize #= require autosize_box_fix window.zp.new = input: -> $("#paste_paste") clear: (e) -> e.preventDefault() @input().val("").focus() init: -> return unless @input().length $(document).on "click", "#reset_paste", $.proxy(@clear, this) @input().autosize className: "mirrored_text form-control", append: "\n" $.autosize_box_fix $(".mirrored_text") @input().focus()