# ----------------------------------------------------------------------------- # Author: Alexander Kravets , # Slate Studio (http://www.slatestudio.com) # # Coding Guide: # https://github.com/thoughtbot/guides/tree/master/style/coffeescript # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- # INPUT TEXT # ----------------------------------------------------------------------------- # # Dependencies: #= require ../vendor/jquery.scrollparent #= require ../vendor/jquery.textarea_autosize # # ----------------------------------------------------------------------------- class @InputText extends InputString # PRIVATE =============================================== _add_input: -> @$input =$ "" @$el.append @$input # PUBLIC ================================================ initialize: -> # TODO: refactor a bit plugin code so there is no blink while jumping from object to object @$input.textareaAutoSize() @config.onInitialize?(this) chr.formInputs['text'] = InputText