Project

General

Profile

Feature #33383 » 0002-Fix-cannot-set-property-dragover-of-undefined-jQuery.patch

Marius BĂLTEANU, 2020-05-20 23:04

View differences:

public/javascripts/attachments.js
function setupFileDrop() {
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
$.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
$.event.addProp('dataTransfer');
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
$(this).on({
(1-1/4)