changeset de0ad8593bf5 in sao:5.6
details: https://hg.tryton.org/sao?cmd=changeset;node=de0ad8593bf5
description:
        Set readonly both inputs of numeric dict fields

        issue9868
        review333201002
        (grafted from 43ee459ad6fb363e40029a7504e8552cb4653c56)
diffstat:

 src/view/form.js |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 184c95610d17 -r de0ad8593bf5 src/view/form.js
--- a/src/view/form.js  Wed Dec 23 21:28:35 2020 +0100
+++ b/src/view/form.js  Tue Jan 05 11:59:43 2021 +0100
@@ -4751,6 +4751,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, {

Reply via email to