Skip to content
Snippets Groups Projects
Commit 2ddd40ed authored by Björn Schießle's avatar Björn Schießle
Browse files

rename 'undelete' to 'restore'

parent 9ca0a938
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,9 @@
$(document).ready(function() {
if (typeof FileActions !== 'undefined') {
FileActions.register('all', 'Undelete', OC.PERMISSION_READ, OC.imagePath('core', 'actions/undelete.png'), function(filename) {
FileActions.register('all', 'Restore', OC.PERMISSION_READ, OC.imagePath('core', 'actions/undelete.png'), function(filename) {
var tr=$('tr').filterAttr('data-file', filename);
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform undelete operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
var undeleteAction = $('tr').filterAttr('data-file',filename).children("td.date");
undeleteAction[0].innerHTML = undeleteAction[0].innerHTML+spinner;
$.post(OC.filePath('files_trashbin','ajax','undelete.php'),
......
......@@ -17,9 +17,9 @@
<span class='name'><?php echo $l->t( 'Name' ); ?></span>
<span class='selectedActions'>
<a href="" class="undelete">
<img class="svg" alt="Undelete"
<img class="svg" alt="<?php echo $l->t( 'Restore' ); ?>"
src="<?php echo OCP\image_path("core", "actions/undelete.png"); ?>" />
<?php echo $l->t('Undelete')?>
<?php echo $l->t('Restore')?>
</a>
</span>
</th>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment