comparison app/assets/javascripts/zp.new.js.coffee @ 351:66fd92af3977

coffee: new.
author edogawaconan <me@myconan.net>
date Thu, 03 Jul 2014 15:15:53 +0900
parents app/assets/javascripts/zp.new.js@3ce44f960d3a
children
comparison
equal deleted inserted replaced
350:dbf1289bd721 351:66fd92af3977
1 #= require jquery.autosize
2 #= require autosize_box_fix
3 window.zp.new =
4 input: -> $("#paste_paste")
5
6 clear: (e) ->
7 e.preventDefault()
8 @input().val("").focus()
9
10 init: ->
11 return unless @input().length
12
13 $(document).on "click", "#reset_paste", $.proxy(@clear, this)
14 @input().autosize className: "mirrored_text form-control", append: "\n"
15 $.autosize_box_fix $(".mirrored_text")
16 @input().focus()