Defect #32656 ยป 32656-drop-effect.patch
| public/javascripts/attachments.js | ||
|---|---|---|
|
function dragOverHandler(e) {
|
||
|
$(this).addClass('fileover');
|
||
|
blockEventPropagation(e);
|
||
|
e.dataTransfer.dropEffect = 'copy';
|
||
|
}
|
||
|
function dragOutHandler(e) {
|
||
| ... | ... | |
|
function setupFileDrop() {
|
||
|
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
|
||
|
$.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
|
||
|
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
|
||
|
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
|
||