Manage readonly state on boolean in Dict widget
issue7341 review42081002
This commit is contained in:
1 parent
f8ae59453a
commit
4c129f3b27
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user