diff options
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 5e34f664a6c..094fb81d78b 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); }); }, |