Use proper attribute to set text readonly on binary widget
issue10171 review330491003
This commit is contained in:
1 parent
5b1b316d53
commit
de946c6409
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user