Merge pull request #1802 from ONLYOFFICE/fix/bugfix

Fix radiobox in advanced settings (set value = false)
This commit is contained in:
Julia Radzhabova 2022-06-16 20:51:28 +03:00 committed by GitHub
commit 0cd2fa52a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}, },