mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
make spinner title translatable
This commit is contained in:
parent
c62a38fcb1
commit
9ca0a93847
2 changed files with 3 additions and 3 deletions
|
|
@ -277,7 +277,7 @@ var FileList={
|
|||
for (var i in files) {
|
||||
var deleteAction = $('tr').filterAttr('data-file',files[i]).children("td.date").children(".action.delete");
|
||||
var oldHTML = deleteAction[0].outerHTML;
|
||||
var newHTML = '<img class="move2trash" data-action="Delete" title="move file to the trash bin" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
||||
var newHTML = '<img class="move2trash" data-action="Delete" title="'+t('files', 'perform delete operation')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
||||
deleteAction[0].outerHTML = newHTML;
|
||||
}
|
||||
// Finish any existing actions
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ $(document).ready(function() {
|
|||
if (typeof FileActions !== 'undefined') {
|
||||
FileActions.register('all', 'Undelete', OC.PERMISSION_READ, OC.imagePath('core', 'actions/undelete.png'), function(filename) {
|
||||
var tr=$('tr').filterAttr('data-file', filename);
|
||||
var spinner = '<img class="move2trash" title="restore file" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform undelete 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'),
|
||||
|
|
@ -66,7 +66,7 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$('.undelete').click('click',function(event) {
|
||||
var spinner = '<img class="move2trash" title="restore file" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform undelete operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
||||
var files=getSelectedFiles('file');
|
||||
var fileslist=files.join(';');
|
||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue