From de946c6409449a9f02b9d5679fac43d00bd687fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Mar 2021 22:05:31 +0100 Subject: [PATCH] Use proper attribute to set text readonly on binary widget issue10171 review330491003 --- src/view/form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/form.js b/src/view/form.js index 6911231b3b..e1758952da 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -3912,7 +3912,7 @@ function eval_pyson(value){ this.update_buttons(Boolean(size)); }, key_press: function(evt) { - var editable = !this.wid_text.prop('readonly'); + var editable = !this.text.prop('readonly'); if (evt.which == Sao.common.F3_KEYCODE && editable) { this.new_(); evt.preventDefault(); @@ -3930,8 +3930,8 @@ function eval_pyson(value){ set_readonly: function(readonly) { this.but_select.prop('disabled', readonly); this.but_clear.prop('disabled', readonly); - if (this.wid_text) { - this.wid_text.prop('readonly', readonly); + if (this.text) { + this.text.prop('readonly', readonly); } } });