Skip to content

Commit

Permalink
add autoupload see BT#10845
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Mar 8, 2016
1 parent d4e9414 commit d45be1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/inc/lib/formvalidator/FormValidator.class.php
Expand Up @@ -1364,7 +1364,7 @@ private function addMultipleUploadJavascript($url, $inputName)
$('#".$inputName."').fileupload({
url: url,
dataType: 'json',
autoUpload: false,
autoUpload: true,
// Enable image resizing, except for Android and Opera,
// which actually support image resizing, but fail to
// send Blob objects via XHR requests:
Expand All @@ -1375,16 +1375,16 @@ private function addMultipleUploadJavascript($url, $inputName)
dropzone: $('#dropzone')
}).on('fileuploadadd', function (e, data) {
data.context = $('<div/>').appendTo('#files');
$.each(data.files, function (index, file) {
var node = $('<p/>').append($('<span/>').text(file.name));
if (!index) {
/*if (!index) {
node
.append('<br>')
.append(uploadButton.clone(true).data(data));
}
}*/
node.appendTo(data.context);
});
}
);
}).on('fileuploadprocessalways', function (e, data) {
var index = data.index,
file = data.files[index],
Expand Down

0 comments on commit d45be1a

Please sign in to comment.