changeset 0ca660dc07da in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=0ca660dc07da
description:
Test readonly attribute on date input
issue10556
review362131002
diffstat:
src/view/form.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 35d3478803db -r 0ca660dc07da src/view/form.js
--- a/src/view/form.js Fri Jul 02 16:56:53 2021 +0200
+++ b/src/view/form.js Wed Jul 07 11:46:28 2021 +0100
@@ -1656,7 +1656,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()));
}
@@ -1664,7 +1664,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();