Fix radiobox in advanced settings (set value = false)
This commit is contained in:
parent
2db9b044c5
commit
d69654ea1f
|
@ -157,7 +157,7 @@ define([
|
||||||
|
|
||||||
setRawValue: function(value) {
|
setRawValue: function(value) {
|
||||||
var value = (value === true || value === 'true' || value === '1' || value === 1 );
|
var value = (value === true || value === 'true' || value === '1' || value === 1 );
|
||||||
$('input[type=radio][name=' + this.name + ']').removeClass('checked');
|
value && $('input[type=radio][name=' + this.name + ']').removeClass('checked');
|
||||||
this.$radio.toggleClass('checked', value);
|
this.$radio.toggleClass('checked', value);
|
||||||
this.$radio.prop('checked', value);
|
this.$radio.prop('checked', value);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue