Fix trashbin previews and "delete selected"

This commit is contained in:
Vincent Petry 2014-04-04 16:43:35 +02:00
parent 8909b574fa
commit a952d80ad9
2 changed files with 4 additions and 4 deletions

View file

@ -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){

View file

@ -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")); ?>" />