changeset 51b44e2d7817 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=51b44e2d7817
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 ba56c4528638 -r 51b44e2d7817 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
@@ -699,11 +699,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) {

Reply via email to