changeset 43ee459ad6fb in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=43ee459ad6fb
description:
Set readonly both inputs of numeric dict fields
issue9868
review333201002
diffstat:
src/view/form.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 4ae911016fd4 -r 43ee459ad6fb src/view/form.js
--- a/src/view/form.js Sun Jan 03 13:01:47 2021 +0100
+++ b/src/view/form.js Tue Jan 05 11:59:43 2021 +0100
@@ -4656,6 +4656,10 @@
this.input_text.val('');
}
},
+ set_readonly: function(readonly) {
+ Sao.View.Form.Dict.Float._super.set_readonly.call(this, readonly);
+ this.input_text.prop('readonly', readonly);
+ }
});
Sao.View.Form.Dict.Numeric = Sao.class_(Sao.View.Form.Dict.Float, {