Browse Source

Merged r21540 to 4.2-stable (#36817).


git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21545 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.6
Marius Balteanu 2 years ago
parent
commit
b7b941e845
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      public/javascripts/attachments.js

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

@@ -289,7 +289,8 @@ function copyImageFromClipboard(e) {
+ '-' + randomKey(5).toLocaleLowerCase()
+ '.' + file.name.split('.').pop();

var inputEl = $('input:file.filedrop').first()
// get input file in the closest form
var inputEl = $(this).closest("form").find('input:file.filedrop');
handleFileDropEvent.target = e.target;
addFile(inputEl, new File([file], filename, { type: file.type }), true);
}

Loading…
Cancel
Save