From a123739f65ecc9d9234cfee098a7ed49046263a2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 9 Mar 2020 10:56:35 +0000 Subject: [PATCH] Merged r19566 from trunk to 4.1-stable (#32656). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19567 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/attachments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index dd7a8e30e..39315d8f8 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -185,6 +185,7 @@ handleFileDropEvent.target = ''; function dragOverHandler(e) { $(this).addClass('fileover'); blockEventPropagation(e); + e.dataTransfer.dropEffect = 'copy'; } function dragOutHandler(e) { @@ -195,6 +196,7 @@ function dragOutHandler(e) { function setupFileDrop() { if (window.File && window.FileList && window.ProgressEvent && window.FormData) { + $.event.fixHooks.dragover = { props: [ 'dataTransfer' ] }; $.event.fixHooks.drop = { props: [ 'dataTransfer' ] }; $('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() { -- 2.39.5