Sha256: 9f09fc8d9b2156036b8833fd667ee7b61cdd273acc487c5a957016bc166489c6

Contents?: true

Size: 625 Bytes

Versions: 19

Compression:

Stored size: 625 Bytes

Contents

class Backbone.Poised.LinkedSelectControl extends Backbone.Poised.LinkedControl
  initialize: (options = {}) =>
    super

    @options = _.chain(options)
      .pick('attribute', 'placeholder', 'options', 'multiselect', 'locale', 'localePrefix')
      .defaults(parentView: this)
      .value()

  render: =>
    super

    @subviews.spinner1 = new Backbone.Poised.Selectbox(_.defaults(model: @model1, @options))
    @$control1.append(@subviews.spinner1.render().el)
    @subviews.spinner2 = new Backbone.Poised.Selectbox(_.defaults(model: @model2, @options))
    @$control2.append(@subviews.spinner2.render().el)

    this

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.5 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.4 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.3 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.2 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.1 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.1.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-4.0.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.4.3 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.4.2 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.4.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.3.1 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.3.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.2.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.1.1 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.1.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-3.0.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-2.0.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee
ela-1.1.0 app/js/vendor/backbone.poised/form/linked_select_control.coffee