mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Disable clicking on boolean fields when they are readonly
issue5528 review25291002
This commit is contained in:
parent
156f4ce32e
commit
2f5692e74e
1 changed files with 5 additions and 0 deletions
|
@ -1294,6 +1294,11 @@
|
|||
'class': 'form-control input-sm'
|
||||
}).appendTo(this.el);
|
||||
this.input.change(this.focus_out.bind(this));
|
||||
this.input.click(function() {
|
||||
// Dont trigger click if field is readonly as readonly has no
|
||||
// effect on checkbox
|
||||
return !JQuery(this).input.prop('readonly');
|
||||
});
|
||||
},
|
||||
display: function(record, field) {
|
||||
Sao.View.Form.Boolean._super.display.call(this, record, field);
|
||||
|
|
Loading…
Reference in a new issue