From 60a716151df0debfec9d05db23312e33f849e320 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 3 Jun 2020 13:25:36 +0000 Subject: [PATCH] Fix cannot set property 'dragover' of undefined (#33383). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19804 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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.39.5