summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-01-07 11:11:21 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-07 11:11:21 +0100
commitda442b024c50160be58281975a6fabe2d86a61a7 (patch)
tree2a1f6b19421c23061c915f2c6086daf38c8d8b99 /apps/files/js
parentcbb118d4a3a26c9471ffc40cc387df4333031da1 (diff)
downloadnextcloud-server-da442b024c50160be58281975a6fabe2d86a61a7.tar.gz
nextcloud-server-da442b024c50160be58281975a6fabe2d86a61a7.zip
remove aborted uploads
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 91204f041e5..6d19a341e9e 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -351,6 +351,7 @@ $(document).ready(function() {
} else {
uploadtext.text(t('files', '{count} files uploading', {count: currentUploads}));
}
+ delete uploadingFiles[dirName][fileName];
$('#notification').hide();
$('#notification').text(t('files', 'Upload cancelled.'));
$('#notification').fadeIn();
@@ -376,6 +377,7 @@ $(document).ready(function() {
}
FileList.loadingDone(file.name, file.id);
} else {
+ Files.cancelUpload(this.files[0].name);
$('#notification').text(t('files', response.data.message));
$('#notification').fadeIn();
$('#fileList > tr').not('[data-mime]').fadeOut();
@@ -384,6 +386,7 @@ $(document).ready(function() {
})
.error(function(jqXHR, textStatus, errorThrown) {
if(errorThrown === 'abort') {
+ Files.cancelUpload(this.files[0].name);
$('#notification').hide();
$('#notification').text(t('files', 'Upload cancelled.'));
$('#notification').fadeIn();