0002-Fix-cannot-set-property-dragover-of-undefined-jQuery.patch

Marius BALTEANU, 2020-05-20 23:04

Download (1016 Bytes)

View differences:

public/javascripts/attachments.js
198 198
function setupFileDrop() {
199 199
  if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
200 200

  
201
    $.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
202
    $.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
201
    $.event.addProp('dataTransfer');
203 202

  
204 203
    $('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
205 204
      $(this).on({
206
-