Quick fix for new files OperationProgressbar

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-26 18:23:36 +01:00
parent b863720bf4
commit 9497659b81
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 10 additions and 1 deletions

View File

@ -311,9 +311,15 @@
if (!$uploadEl.exists()) {
return;
}
this._operationProgressBar = new OCA.Files.OperationProgressBar();
this._operationProgressBar.render();
$('#content').find('#uploadprogresswrapper').replaceWith(this._operationProgressBar.$el);
this._uploader = new OC.Uploader($uploadEl, {
fileList: FileList,
dropZone: $('#content')
dropZone: $('#content'),
progressBar: this._operationProgressBar
});
this._uploader.on('add', function (e, data) {
data.targetDir = '/' + Gallery.currentAlbum;

View File

@ -15,6 +15,9 @@ script(
'upload',
'file-upload',
'jquery.fileupload',
'operationprogressbar',
'templates',
'semaphore'
]
);
style(