From 36dee8a8538787391b7c556bd06090522c5bc3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 Jun 2024 18:38:58 +0200 Subject: [PATCH] Bind callback to the attachment window when dropping file as attachment Closes #13182 --- sao/src/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/tab.js b/sao/src/tab.js index 34f1b13040..c0c2c24cb9 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -1259,7 +1259,7 @@ this.refresh_resources(true); }); for (const file of files) { - Sao.common.get_file_data(file, window_.add_data); + Sao.common.get_file_data(file, window_.add_data.bind(window_)); } jQuery.when.apply(jQuery, uris).then(function() { function empty(value) {