changeset 5df21bf7b1db in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=5df21bf7b1db
description:
        Bind mousetrap callback on screen dates

        issue11291
        review380471002
diffstat:

 src/screen.js |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 660d3da4cc5e -r 5df21bf7b1db 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
@@ -703,11 +703,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