Feature #33383 » 0002-Fix-cannot-set-property-dragover-of-undefined-jQuery.patch
public/javascripts/attachments.js | ||
---|---|---|
198 | 198 |
function setupFileDrop() { |
199 | 199 |
if (window.File && window.FileList && window.ProgressEvent && window.FormData) { |
200 | 200 | |
201 |
$.event.fixHooks.dragover = { props: [ 'dataTransfer' ] }; |
|
202 |
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] }; |
|
201 |
$.event.addProp('dataTransfer'); |
|
203 | 202 | |
204 | 203 |
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() { |
205 | 204 |
$(this).on({ |