diff --git a/src/view/form.js b/src/view/form.js index f713e467b0..1f1c58e09e 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -4288,6 +4288,10 @@ function eval_pyson(value){ get_value: function() { return this.input.prop('checked'); }, + set_readonly: function(readonly) { + this._readonly = readonly; + this.input.prop('disabled', readonly); + }, set_value: function(value) { this.input.prop('checked', value); }