From: Vincent Petry Date: Fri, 4 Apr 2014 14:43:35 +0000 (+0200) Subject: Fix trashbin previews and "delete selected" X-Git-Tag: v7.0.0alpha2~339^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a952d80ad9e57931f6a8fcb94ef6cab4f982149c;p=nextcloud-server.git Fix trashbin previews and "delete selected" --- 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){ diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php index cb64ae9eafa..323e7495535 100644 --- a/apps/files_trashbin/templates/index.php +++ b/apps/files_trashbin/templates/index.php @@ -29,7 +29,7 @@ t( 'Deleted' )); ?> - + t('Delete'))?> <?php p($l->t('Delete'))?>" />