Browse Source

Merged r19566 from trunk to 4.0-stable (#32656).


git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@19568 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.0.7
Go MAEDA 4 years ago
parent
commit
fe7fd22a0c
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      public/javascripts/attachments.js

+ 2
- 0
public/javascripts/attachments.js View File

@@ -185,6 +185,7 @@ handleFileDropEvent.target = '';
function dragOverHandler(e) {
$(this).addClass('fileover');
blockEventPropagation(e);
e.dataTransfer.dropEffect = 'copy';
}

function dragOutHandler(e) {
@@ -195,6 +196,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' ] };

$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {

Loading…
Cancel
Save