diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-09 10:56:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-09 10:56:35 +0000 |
commit | a123739f65ecc9d9234cfee098a7ed49046263a2 (patch) | |
tree | 539337fe84f9b7eb324af75184d143208b9af76f /public | |
parent | 70fe037aa14a6e99e7875d0078b690ed860709a3 (diff) | |
download | redmine-a123739f65ecc9d9234cfee098a7ed49046263a2.tar.gz redmine-a123739f65ecc9d9234cfee098a7ed49046263a2.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |