changeset da27082bd00e in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=da27082bd00e
description:
Bind mousetrap callback on screen dates
issue11291
review380471002
(grafted from 5df21bf7b1db88e81a377fe53e5aa4dbdf5aee68)
diffstat:
src/screen.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 445132744082 -r da27082bd00e src/screen.js
--- a/src/screen.js Sat Mar 19 15:05:21 2022 +0100
+++ b/src/screen.js Sat Mar 19 15:06:48 2022 +0100
@@ -694,11 +694,11 @@
var value = this._parse(this.format, date.val());
value = this._format(this.format, value);
date.val(value);
- });
+ }.bind(this));
mousetrap.bind('=', function(e, combo) {
e.preventDefault();
date.val(this._format(this.format, moment()));
- });
+ }.bind(this));
Sao.common.DATE_OPERATORS.forEach(function(operator) {
mousetrap.bind(operator[0], function(e, combo) {