Feature #33383 » 0002-Fix-cannot-set-property-dragover-of-undefined-jQuery.patch
| public/javascripts/attachments.js | ||
|---|---|---|
|
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({
|
||