Defect #17151 » 17151_redmine_2.3_latest.patch
public/javascripts/attachments.js | |||
---|---|---|---|
115 |
} |
115 |
} |
116 | 116 | ||
117 |
function addInputFiles(inputEl) { |
117 |
function addInputFiles(inputEl) { |
118 |
$(inputEl).attr('onchange', null); |
||
118 |
var clearedFileInput = $(inputEl).clone().val(''); |
119 |
var clearedFileInput = $(inputEl).clone().val(''); |
119 | 120 | ||
120 |
if (inputEl.files) { |
121 |
if (inputEl.files) { |
... | ... | ||
132 |
} |
133 |
} |
133 | 134 | ||
134 |
clearedFileInput.insertAfter('#attachments_fields'); |
135 |
clearedFileInput.insertAfter('#attachments_fields'); |
136 |
clearedFileInput.attr('onchange', 'addInputFiles(this);'); |
||
135 |
} |
137 |
} |
136 | 138 | ||
137 |
function uploadAndAttachFiles(files, inputEl) { |
139 |
function uploadAndAttachFiles(files, inputEl) { |
- « Previous
- 1
- 2
- 3
- Next »