changeset f579e50e1832 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=f579e50e1832
description:
Call change() when a Date field is updated via visual calendar
issue10647
review362341002
(grafted from 474abeca9f9b4c8199ac333b3e8a178ac1c88adb)
diffstat:
src/view/form.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 057957bf0a29 -r f579e50e1832 src/view/form.js
--- a/src/view/form.js Thu Aug 12 18:47:54 2021 +0200
+++ b/src/view/form.js Fri Aug 13 18:15:22 2021 +0200
@@ -1623,7 +1623,7 @@
if (value) {
value = this._parse(this._input_format, value);
value = this._format(this.get_format(), value);
- this.date.val(value);
+ this.date.val(value).change();
this.date.focus();
}
}.bind(this));
@@ -4995,7 +4995,7 @@
if (value) {
value = this._parse(this._input_format, value);
value = this._format(this.format, value);
- this.input.val(value);
+ this.input.val(value).change();
this.input.focus();
}
}.bind(this));