Mercurial > zeropaste
comparison app/assets/javascripts/zp.new.js @ 262:45bd94c70896
Fix class name for form autoresizer.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 15 Oct 2013 22:42:24 +0900 |
parents | cbd5819d7468 |
children | 3ce44f960d3a |
comparison
equal
deleted
inserted
replaced
261:f057e8c78e50 | 262:45bd94c70896 |
---|---|
8 e.preventDefault() | 8 e.preventDefault() |
9 }, | 9 }, |
10 init: function() { | 10 init: function() { |
11 if (this.input().length === 0) { return } | 11 if (this.input().length === 0) { return } |
12 $(document).on('click', "#reset_paste", $.proxy(this.clear, this)) | 12 $(document).on('click', "#reset_paste", $.proxy(this.clear, this)) |
13 this.input().autosize({ className: 'mirrored_text row-fluid', append: "\n"}); | 13 this.input().autosize({ className: 'mirrored_text form-control', append: "\n"}); |
14 $.autosize_box_fix($(".mirrored_text")) | 14 $.autosize_box_fix($(".mirrored_text")) |
15 this.input().focus() | 15 this.input().focus() |
16 } | 16 } |
17 } | 17 } |
18 })(jQuery) | 18 })(jQuery) |