Project

General

Profile

Defect #32656 ยป 32656-drop-effect.patch

Yuichi HARADA, 2020-01-29 04:04

View differences:

public/javascripts/attachments.js
function dragOverHandler(e) {
$(this).addClass('fileover');
blockEventPropagation(e);
e.dataTransfer.dropEffect = 'copy';
}
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() {
    (1-1/1)