mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Fix that drag and drop objects from Outlook to Redmine deletes them (#32656).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19566 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -185,6 +185,7 @@ handleFileDropEvent.target = '';
|
|||||||
function dragOverHandler(e) {
|
function dragOverHandler(e) {
|
||||||
$(this).addClass('fileover');
|
$(this).addClass('fileover');
|
||||||
blockEventPropagation(e);
|
blockEventPropagation(e);
|
||||||
|
e.dataTransfer.dropEffect = 'copy';
|
||||||
}
|
}
|
||||||
|
|
||||||
function dragOutHandler(e) {
|
function dragOutHandler(e) {
|
||||||
@@ -195,6 +196,7 @@ function dragOutHandler(e) {
|
|||||||
function setupFileDrop() {
|
function setupFileDrop() {
|
||||||
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
|
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
|
||||||
|
|
||||||
|
$.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
|
||||||
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
|
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
|
||||||
|
|
||||||
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
|
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user