diff options
author | Go MAEDA <maeda@farend.jp> | 2020-06-03 13:25:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-06-03 13:25:36 +0000 |
commit | 60a716151df0debfec9d05db23312e33f849e320 (patch) | |
tree | 03ef163df0fe5725d7226631fa08977f5f08a2c0 | |
parent | 4008163a23c41999c1673ef0643a6298be54ac05 (diff) | |
download | redmine-60a716151df0debfec9d05db23312e33f849e320.tar.gz redmine-60a716151df0debfec9d05db23312e33f849e320.zip |
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
-rw-r--r-- | public/javascripts/attachments.js | 3 |
1 files changed, 1 insertions, 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({ |