summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-04 16:43:35 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-28 14:55:01 +0200
commita952d80ad9e57931f6a8fcb94ef6cab4f982149c (patch)
treebe939da5dd502ecd2e44e2b7862afe9efc7a1f00 /apps/files_trashbin/js
parent8909b574facf29ca0a57ab5d75d9904c18cc6338 (diff)
downloadnextcloud-server-a952d80ad9e57931f6a8fcb94ef6cab4f982149c.tar.gz
nextcloud-server-a952d80ad9e57931f6a8fcb94ef6cab4f982149c.zip
Fix trashbin previews and "delete selected"
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r--apps/files_trashbin/js/filelist.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js
index 6c9b345086a..d4445e11c86 100644
--- a/apps/files_trashbin/js/filelist.js
+++ b/apps/files_trashbin/js/filelist.js
@@ -49,8 +49,8 @@
}
};
- var oldAdd = FileList.add;
- FileList.add = function(fileData, options) {
+ var oldRenderRow = FileList._renderRow;
+ FileList._renderRow = function(fileData, options) {
options = options || {};
var dir = FileList.getCurrentDirectory();
var dirListing = dir !== '' && dir !== '/';
@@ -62,7 +62,7 @@
fileData.displayName = fileData.name;
fileData.name = fileData.name + '.d' + Math.floor(fileData.mtime / 1000);
}
- return oldAdd.call(this, fileData, options);
+ return oldRenderRow.call(this, fileData, options);
};
FileList.linkTo = function(dir){