Project

General

Profile

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

Yuichi HARADA, 2020-01-29 04:04

View differences:

public/javascripts/attachments.js
185 185
function dragOverHandler(e) {
186 186
  $(this).addClass('fileover');
187 187
  blockEventPropagation(e);
188
  e.dataTransfer.dropEffect = 'copy';
188 189
}
189 190

  
190 191
function dragOutHandler(e) {
......
195 196
function setupFileDrop() {
196 197
  if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
197 198

  
199
    $.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
198 200
    $.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
199 201

  
200 202
    $('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
    (1-1/1)