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 committed Apr 16, 2019
1 parent 5b2c425 commit 92f4e60
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 92f4e60

Please sign in to comment.