This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/resources/assets/js/components/auth/InitializeIcheck.js

21 lines
525 B
JavaScript
Raw Permalink Normal View History

export default {
mounted () {
this.initialitzeICheck()
},
methods: {
initialitzeICheck () {
var component = this
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%'
}).on('ifChecked', function (event) {
component.form.setField('terms', true)
component.form.errors.clear('terms')
}).on('ifUnchecked', function (event) {
component.form.setField('terms', '')
})
}
}
}