Sha256: b26ce593aa695df8683a9b723d2410e8d5077294e9ec49950c8e09f506c97642

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 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 'change'
      false

TaoComponent.register Tao.Form.Radio

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tao_form-0.1.2 lib/assets/javascripts/tao/form/fields/radio.coffee
tao_form-0.1.1 lib/assets/javascripts/tao/form/fields/radio.coffee
tao_form-0.1.0 lib/assets/javascripts/tao/form/fields/radio.coffee