diff --git a/sao/src/window.js b/sao/src/window.js index f5829fd1e6..f9f4a5c26f 100644 --- a/sao/src/window.js +++ b/sao/src/window.js @@ -1466,17 +1466,16 @@ 'class': 'btn btn-link', 'type': 'button', 'title': Sao.i18n.gettext("Cancel"), - }).text(Sao.i18n.gettext("Cancel")).click(() => { - this.response('RESPONSE_CANCEL'); + }).text(Sao.i18n.gettext("Cancel")).on('click', (evt) => { + this.response(evt, 'RESPONSE_CANCEL'); }).appendTo(this.dialog.footer); jQuery('