Sha256: 3e80756b9359b0efa5b7b1a0c7c409a7b216179d2a8f93c7bd8bb8fa383b6d54

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

#= require tao/form/shared/fields/checkbox

class Tao.Form.Checkbox extends Tao.Form.CheckboxBase

  _bind: ->
    super

    @on 'keydown', '.checkbox-wrapper', (e) =>
      return unless e.which == 13 && @field.is(':enabled')
      @_toggleChecked()
      @trigger 'tao:change'
      false

TaoComponent.register Tao.Form.Checkbox

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tao_form-0.1.9 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.8 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.7 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.6 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.5 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.4 lib/assets/javascripts/tao/form/fields/checkbox.coffee
tao_form-0.1.3 lib/assets/javascripts/tao/form/fields/checkbox.coffee