From 30dbdf29f42ec90fcccc37a02db35b20cae4d61c Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 18 Feb 2021 03:42:56 -0500 Subject: [PATCH] import: Convert arrow function to regular function This fixes a bug introduced in commit b711ff6acf976a3f8808325411cf244d55c5a0e7. Some time between when that commit was originally written and when it was merged a round of linting had converted the function from a regular function to an arrow function because `this` was never in the body of the function. When I rebased the commit, which introduced `this` to the body, I didn't catch the error. --- src/static/js/pad_impexp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad_impexp.js b/src/static/js/pad_impexp.js index 60a51354f..8689b5b35 100644 --- a/src/static/js/pad_impexp.js +++ b/src/static/js/pad_impexp.js @@ -42,7 +42,7 @@ const padimpexp = (() => { $('#importmessagefail').fadeOut('fast'); }; - const fileInputSubmit = (e) => { + const fileInputSubmit = function (e) { e.preventDefault(); $('#importmessagefail').fadeOut('fast'); if (!window.confirm(html10n.get('pad.impexp.confirmimport'))) return;