Project

General

Profile

Defect #17559 » redmine_file_upload.patch

George Gensure, 2014-07-25 16:59

View differences:

public/javascripts/attachments.js
115 115
}
116 116

  
117 117
function addInputFiles(inputEl) {
118
  var clearedFileInput = $(inputEl).clone().val('');
118
  var onchange = $(inputEl).attr("onchange");
119
  var clearedFileInput = $(inputEl).attr("onchange", null).clone().val('');
120
  clearedFileInput.attr("onchange", onchange);
119 121

  
120 122
  if (inputEl.files) {
121 123
    // upload files using ajax
(3-3/3)