diff --git a/apps/filebrowser/src/filebrowser/templates/listdir_components.mako b/apps/filebrowser/src/filebrowser/templates/listdir_components.mako index 2bdcccf9c63..88fb93577f4 100644 --- a/apps/filebrowser/src/filebrowser/templates/listdir_components.mako +++ b/apps/filebrowser/src/filebrowser/templates/listdir_components.mako @@ -713,7 +713,7 @@ else:    - ${_('Failed')} + ${_('Hello Failed')}
@@ -2085,10 +2085,12 @@ else: // totalFileSize: "qqtotalfilesize", // totalParts: "qqtotalparts" // }, - onProgress: function (id, fileName, loaded, total) { + callbacks: { + onProgress: function (id, fileName, loaded, total) { + console.log(loaded); $('.qq-upload-files').find('li').each(function(){ var listItem = $(this); - if (listItem.find('.qq-upload-file-extended').text() == fileName){ + if (listItem.find('.qq-upload-file-selector').text() == fileName){ listItem.find('.progress-row-bar').css('width', (loaded/total)*100 + '%'); } }); @@ -2107,12 +2109,22 @@ else: self.retrieveData(true); } }, + onTotalProgress: function(totalUploadedBytes, totalBytes) { + if (totalUploadedBytes == totalBytes) { + + } + }, + onAllComplete: function(succeeded, failed){ + $('#uploadFileModal').modal('hide'); + }, onSubmit: function (id, fileName, responseJSON) { self.pendingUploads(self.pendingUploads() + 1); }, onCancel: function (id, fileName) { self.pendingUploads(self.pendingUploads() - 1); + } }, + debug: false });