Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 19:53:48 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 19:53:48 +0300
commitab1985b62b56699061f2206b15404f7f881797c5 (patch)
tree403292c360845cac9e7e486941c352d4b3a25d4a /apps/files/js/files.js
parent62d71158a9ee8b17a61c852da952f5c757e0d17c (diff)
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) {