From 8f98f2e14eae5e29423119d84431a27d05adff14 Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Wed, 20 May 2020 23:49:56 +0300 Subject: [PATCH 2/2] Fix cannot set property 'dragover' of undefined (jQuery.event.fixHooks removed in jQuery 3) --- public/javascripts/attachments.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 567b6be81..01cf5cc15 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -198,8 +198,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' ] }; + $.event.addProp('dataTransfer'); $('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() { $(this).on({ -- 2.22.0