Sha256: 84e63102bf2869ff180eb17fd6b8d1af7f4d60d3bfc12df2140428002d05be77

Contents?: true

Size: 977 Bytes

Versions: 11

Compression:

Stored size: 977 Bytes

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 PASSWORD
# -----------------------------------------------------------------------------
class @InputPassword extends InputString

  # PRIVATE ===============================================

  _add_input: ->
    @$input =$ "<input type='password' name='#{ @name }' value='#{ @value }' />"
    @$input.on 'keyup', (e) => @$input.trigger('change')
    @$el.append @$input


  # PUBLIC ================================================

  updateValue: (@value) ->
    @$input.val(@value)


chr.formInputs['password'] = InputPassword




Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
formagic-0.3.4 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.3.3 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.3.2 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.3.1 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.3.0 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.2.9 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.2.8 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.2.6 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.2.5 app/assets/javascripts/formagic/inputs/password.coffee
formagic-0.1.0 app/assets/javascripts/formagic/inputs/password.coffee
chr-0.3.5 app/assets/javascripts/form/input-password.coffee