diff options
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 0c672cd6708..deec640bc12 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -71,7 +71,7 @@ FileActions={ } var html='<a href="#" class="action" style="display:none">'; if(img) { html+='<img src="'+img+'"/> '; } - html += name+'</a>'; + html += t('files', name) +'</a>'; var element=$(html); element.data('action',name); element.click(function(event){ @@ -91,7 +91,11 @@ FileActions={ if(img.call){ img=img(file); } - var html='<a href="#" original-title="Delete" class="action delete" style="display:none" />'; + if ($('#dir').val().indexOf('Shared') != -1) { + var html='<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" style="display:none" />'; + } else { + var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />'; + } var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); |