]> source.dussan.org Git - redmine.git/commitdiff
Merged r19566 from trunk to 4.0-stable (#32656).
authorGo MAEDA <maeda@farend.jp>
Mon, 9 Mar 2020 10:57:36 +0000 (10:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 9 Mar 2020 10:57:36 +0000 (10:57 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@19568 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/attachments.js

index 753855f91979d1a8312b943faec60b994094cab2..2ad037b60718730e728ce8f6cb5d20c41a98b4cb 100644 (file)
@@ -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() {