2017-12-03 01:20:26 +00:00
|
|
|
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) {
|
2018-04-10 11:23:13 +00:00
|
|
|
component.form.setField('terms', true)
|
2017-12-03 01:20:26 +00:00
|
|
|
component.form.errors.clear('terms')
|
|
|
|
}).on('ifUnchecked', function (event) {
|
2018-04-10 11:23:13 +00:00
|
|
|
component.form.setField('terms', '')
|
2017-12-03 01:20:26 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|