mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
Fix file upload for IE9 (#6719).
git-svn-id: http://svn.redmine.org/redmine/trunk@15926 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
180c81dbf1
commit
2f48c9a83a
@ -4,7 +4,7 @@
|
||||
function addFile(inputEl, file, eagerUpload) {
|
||||
var attachmentsFields = $(inputEl).closest('.attachments_form').find('.attachments_fields');
|
||||
var addAttachment = $(inputEl).closest('.attachments_form').find('.add_attachment');
|
||||
var maxFiles = ($(inputEl).prop('multiple') == true ? 10 : 1);
|
||||
var maxFiles = ($(inputEl).attr('multiple') == 'multiple' ? 10 : 1);
|
||||
|
||||
if (attachmentsFields.children().length < maxFiles) {
|
||||
var attachmentId = addFile.nextAttachmentId++;
|
||||
@ -89,6 +89,7 @@ function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
|
||||
ajaxUpload.uploading = 0;
|
||||
|
||||
function removeFile() {
|
||||
$(this).closest('.attachments_form').find('.add_attachment').show();
|
||||
$(this).parent('span').remove();
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user