Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Commit 119ceef

Browse files
committed
Quick fix for new files OperationProgressbar
Signed-off-by: Julius Härtl <[email protected]>
1 parent 5c31a0a commit 119ceef

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

js/galleryview.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,15 @@
311311
if (!$uploadEl.exists()) {
312312
return;
313313
}
314+
315+
this._operationProgressBar = new OCA.Files.OperationProgressBar();
316+
this._operationProgressBar.render();
317+
$('#content').find('#uploadprogresswrapper').replaceWith(this._operationProgressBar.$el);
318+
314319
this._uploader = new OC.Uploader($uploadEl, {
315320
fileList: FileList,
316-
dropZone: $('#content')
321+
dropZone: $('#content'),
322+
progressBar: this._operationProgressBar
317323
});
318324
this._uploader.on('add', function (e, data) {
319325
data.targetDir = '/' + Gallery.currentAlbum;

templates/part.content.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
'upload',
1616
'file-upload',
1717
'jquery.fileupload',
18+
'operationprogressbar',
19+
'templates',
20+
'semaphore'
1821
]
1922
);
2023
style(

0 commit comments

Comments
 (0)