Skip to content

Commit

Permalink
Fix missing progress bar in files drop view
Browse files Browse the repository at this point in the history
The uploader is expecting the progress bar element to be in the DOM when
created. This fix makes sure to append the PublicUploadView's element to
the DOM before rendering it.
  • Loading branch information
Vincent Petry authored and phil-davis committed Apr 26, 2019
1 parent b8f5a04 commit e741745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_sharing/js/PublicUploadView.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@
var view = new OCA.Sharing.PublicUploadView({
shareToken: $('#sharingToken').val()
});
$('#preview .uploadForm').append(view.$el);

view.render();

$('#preview .uploadForm').append(view.$el);
$('#uploadprogresswrapper .stop').on('click', function () {
view.onUploadCancel();
});
Expand Down

0 comments on commit e741745

Please sign in to comment.