Sha256: 89fda0734fca24f0d2616fd681f296b51ac68a36ebdc1fcec6767a6543545064
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 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 }); } } $(document).ready(function() { window.materializeForm.init() }); $(document).ajaxSuccess(function() { window.materializeForm.init() });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
materialize-form-1.0.8 | app/assets/javascripts/materialize-form.js |