changeset c35866d19e3e in sao:6.0 details: https://hg.tryton.org/sao?cmd=changeset&node=c35866d19e3e description: Test readonly attribute on date input
issue10556 review362131002 (grafted from 0ca660dc07da9b273f29e1c262143f8633cee55c) diffstat: src/view/form.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 0e9dc5739847 -r c35866d19e3e src/view/form.js --- a/src/view/form.js Wed Jul 21 08:17:05 2021 +0200 +++ b/src/view/form.js Wed Jul 07 11:46:28 2021 +0100 @@ -1647,7 +1647,7 @@ } }.bind(this)); mousetrap.bind('=', function(e, combo) { - if (!this.date.find('input').prop('readonly')) { + if (!this.date.prop('readonly')) { e.preventDefault(); this.date.val(this._format(this.get_format(), moment())); } @@ -1655,7 +1655,7 @@ Sao.common.DATE_OPERATORS.forEach(function(operator) { mousetrap.bind(operator[0], function(e, combo) { - if (this.date.find('input').prop('readonly')) { + if (this.date.prop('readonly')) { return; } e.preventDefault();