]> source.dussan.org Git - redmine.git/commitdiff
Fix cannot set property 'dragover' of undefined (#33383).
authorGo MAEDA <maeda@farend.jp>
Wed, 3 Jun 2020 13:25:36 +0000 (13:25 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 3 Jun 2020 13:25:36 +0000 (13:25 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@19804 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/attachments.js

index 567b6be81b14fb9bb551c819b28c1b819a856f12..01cf5cc15756d0b4288678f8fddd9b3481dd4439 100644 (file)
@@ -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({