Do not retrieve storage stats for trash bin

This commit is contained in:
Vincent Petry 2014-03-25 11:00:01 +01:00
parent b92dad992f
commit f3d6b2f3e9
1 changed files with 5 additions and 0 deletions

View File

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