diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-04-28 05:37:20 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-04-28 05:37:20 +0000 |
commit | b7b941e845a061076f5ccf75be5bb6c6b5a054cb (patch) | |
tree | 295dcaf4041b00177206fb9666f6597e9f0cbccf /public | |
parent | 08ccef91a83e9decb6054d78138f5b3044ce1440 (diff) | |
download | redmine-b7b941e845a061076f5ccf75be5bb6c6b5a054cb.tar.gz redmine-b7b941e845a061076f5ccf75be5bb6c6b5a054cb.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 839b4c776..de043815a 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -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); } |