Skip to content
Snippets Groups Projects
Commit a952d80a authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix trashbin previews and "delete selected"

parent 8909b574
Branches
No related tags found
No related merge requests found
......@@ -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){
......
......@@ -29,7 +29,7 @@
<th id="headerDate">
<span id="modified"><?php p($l->t( 'Deleted' )); ?></span>
<span class="selectedActions">
<a href="" class="delete">
<a href="" class="delete-selected">
<?php p($l->t('Delete'))?>
<img class="svg" alt="<?php p($l->t('Delete'))?>"
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment