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() {