Sha256: fdb612add02f9a164279424face06ea8f203d457f4c98161f0a5cbf493a9682a
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
# ----------------------------------------------------------------------------- # Author: Alexander Kravets <alex@slatestudio.com>, # 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 =$ "<textarea class='autosize' name='#{ @name }' rows=1>#{ @_safe_value() }</textarea>" @$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
Version data entries
4 entries across 4 versions & 1 rubygems