mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-11 11:43:08 +00:00
Merged r21540 to 5.0-stable (#36817).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21544 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
66db5bf8e7
commit
f9fd7c02a0
@ -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…
x
Reference in New Issue
Block a user