Sha256: fea0b9a880af9b53eac2b142ff77ab3fd22512e0acc36e6a849b88c9de8a1501

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

window.materializeForm = {
  init: function() {
    this.initSelect()
    this.initCheckbox()
    this.initDate()  
  },
  initSelect: function() {
    $('select[multiple="multiple"] option[value=""]').attr('disabled', true)
    $('select').material_select()
  },
  initCheckbox: function() {
    $('input[type=checkbox]').addClass('filled-in')
  },
  initDate: function() {
    $('input.date').pickadate({
      selectMonths: true, 
      selectYears: 100
    });
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
materialize-form-1.0.3 app/assets/javascripts/materialize-form.js
materialize-form-1.0.2 app/assets/javascripts/materialize-form.js
materialize-form-1.0.1 app/assets/javascripts/materialize-form.js