translate rename and history actions
This commit is contained in:
parent
d5211f9615
commit
107b641708
|
@ -179,6 +179,7 @@ FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.
|
|||
$('.tipsy').remove();
|
||||
});
|
||||
|
||||
// t('files', 'Rename')
|
||||
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){
|
||||
FileList.rename(filename);
|
||||
});
|
||||
|
|
|
@ -10,10 +10,10 @@ $(document).ready(function() {
|
|||
|
||||
$(document).ready(function(){
|
||||
if (typeof FileActions !== 'undefined') {
|
||||
// Add history button to files/index.php
|
||||
// Add history button to 'files/index.php'
|
||||
FileActions.register(
|
||||
'file'
|
||||
,'History'
|
||||
, t('files_versions', 'History')
|
||||
, OC.PERMISSION_UPDATE
|
||||
, function() {
|
||||
// Specify icon for hitory button
|
||||
|
|
Loading…
Reference in New Issue