]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not retrieve storage stats for trash bin
authorVincent Petry <pvince81@owncloud.com>
Tue, 25 Mar 2014 10:00:01 +0000 (11:00 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 28 Mar 2014 10:21:33 +0000 (11:21 +0100)
apps/files_trashbin/js/trash.js

index 6aade210505e78cca7d1a94cde032d628a71234b..efe1e89f0bf3fc2c67a1d5e2f643d860995996bd 100644 (file)
@@ -25,6 +25,11 @@ $(document).ready(function() {
                enableActions();
        }
 
+       Files.updateStorageStatistics = function() {
+               // no op because the trashbin doesn't have
+               // storage info like free space / used space
+       };
+
        if (typeof FileActions !== 'undefined') {
                FileActions.register('all', 'Restore', OC.PERMISSION_READ, OC.imagePath('core', 'actions/history'), function(filename) {
                        var tr = FileList.findFileEl(filename);