app/assets/javascripts/materialize-form.js in materialize-form-1.0.6 vs app/assets/javascripts/materialize-form.js in materialize-form-1.0.7

- old
+ new

@@ -1,26 +1,26 @@ window.materializeForm = { init: function() { this.initSelect() this.initCheckbox() - this.initDate() + 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, + selectMonths: true, selectYears: 100 }); } } -$(document).ready(function() { +$(document).on('turbolinks:load', function() { window.materializeForm.init() }); $(document).ajaxSuccess(function() { window.materializeForm.init()