Sha256: bd202df938d9c9c8f647fb45a18ee299bd2b2dccaf5e853228bd9aedc9bb5d9a

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

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

class Tao.Form.Radio extends Tao.Form.RadioBase

  _bind: ->
    super

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

TaoComponent.register Tao.Form.Radio

Version data entries

7 entries across 7 versions & 1 rubygems

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