Quick fix for new files OperationProgressbar
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
b863720bf4
commit
9497659b81
|
@ -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;
|
||||
|
|
|
@ -15,6 +15,9 @@ script(
|
|||
'upload',
|
||||
'file-upload',
|
||||
'jquery.fileupload',
|
||||
'operationprogressbar',
|
||||
'templates',
|
||||
'semaphore'
|
||||
]
|
||||
);
|
||||
style(
|
||||
|
|
Loading…
Reference in New Issue