summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 17:53:48 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 17:53:48 +0100
commitab1985b62b56699061f2206b15404f7f881797c5 (patch)
tree403292c360845cac9e7e486941c352d4b3a25d4a /apps/files/js/files.js
parent62d71158a9ee8b17a61c852da952f5c757e0d17c (diff)
downloadnextcloud-server-ab1985b62b56699061f2206b15404f7f881797c5.tar.gz
nextcloud-server-ab1985b62b56699061f2206b15404f7f881797c5.zip
Fixed quota update on upload and on delete
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js18
1 files changed, 4 insertions, 14 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 5e34f664a6c..680eb572268 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -29,23 +29,12 @@
state.dir = null;
state.call = null;
Files.updateMaxUploadFilesize(response);
- Files.updateQuota(response);
});
},
// update quota
- updateStorageQuotas: function(currentDir) {
- var state = Files.updateStorageStatistics;
- if (state.dir){
- if (state.dir === currentDir) {
- return;
- }
- // cancel previous call, as it was for another dir
- state.call.abort();
- }
- state.dir = currentDir;
- state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
- state.dir = null;
- state.call = null;
+ updateStorageQuotas: function() {
+ var state = Files.updateStorageQuotas;
+ state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
Files.updateQuota(response);
});
},
@@ -70,6 +59,7 @@
else {
Files._updateStorageStatisticsDebounced(dir);
}
+ //Files.updateStorageQuotas();
},
updateMaxUploadFilesize:function(response) {