Manage readonly state on boolean in Dict widget

issue7341
review42081002
This commit is contained in:
Kunkel Pierre committed 2018-04-14 10:22:46 +02:00
1 parent f8ae59453a
commit 4c129f3b27
1 file changed
+4
+4
View File
@@ -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);
}