From c7fea8d816584b452746bb6ab0e27e068b75a3b8 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 13 Dec 2019 09:06:55 +0000 Subject: [PATCH] Merged r19371 from trunk to 4.1-stable (#32469, #3816). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19372 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 053ef076a..dd7a8e30e 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -255,7 +255,7 @@ function copyImageFromClipboard(e) { if (!$(e.target).hasClass('wiki-edit')) { return; } var clipboardData = e.clipboardData || e.originalEvent.clipboardData if (!clipboardData) { return; } - if (clipboardData.types.some(t => /^text/.test(t))) { return; } + if (clipboardData.types.some(function(t){ return /^text/.test(t); })) { return; } var items = clipboardData.items for (var i = 0 ; i < items.length ; i++) { -- 2.39.5