changeset 474abeca9f9b in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=474abeca9f9b
description:
Call change() when a Date field is updated via visual calendar
issue10647
review362341002
diffstat:
src/view/form.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r d9927b9ac1d7 -r 474abeca9f9b 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
@@ -1632,7 +1632,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));
@@ -5006,7 +5006,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));