summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 13:59:36 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 13:59:36 +0100
commitc4490c6ba890240777fc033b56f9bdd8fd4f4c9a (patch)
treefdf545037f0bb627589ccd34e5f433a7cf88770d /apps/files/js/filelist.js
parenta8ab67ff48aa425edd1d86b4a3b5855150bb2ac1 (diff)
downloadnextcloud-server-c4490c6ba890240777fc033b56f9bdd8fd4f4c9a.tar.gz
nextcloud-server-c4490c6ba890240777fc033b56f9bdd8fd4f4c9a.zip
Update quotas on each upload
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d0c0fc1a7fc..a2fd45e24b3 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1802,6 +1802,10 @@
OCA.Files.Files.updateStorageStatistics(this.getCurrentDirectory(), force);
},
+ updateStorageQuotas: function() {
+ OCA.Files.Files.updateStorageQuotas(this.getCurrentDirectory());
+ },
+
/**
* @deprecated do not use nor override
*/
@@ -3075,6 +3079,8 @@
self.showFileBusyState(uploadText.closest('tr'), false);
uploadText.fadeOut();
uploadText.attr('currentUploads', 0);
+
+ self.updateStorageQuotas(true);
});
uploader.on('createdfolder', function(fullPath) {
self.addAndFetchFileInfo(OC.basename(fullPath), OC.dirname(fullPath));