Browse Source

translate rename and history actions

remotes/origin/stable45
scambra 13 years ago
parent
commit
107b641708
  1. 1
      apps/files/js/fileactions.js
  2. 6
      apps/files_versions/js/versions.js

1
apps/files/js/fileactions.js

@ -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);
});

6
apps/files_versions/js/versions.js

@ -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
@ -147,4 +147,4 @@ $(this).click(
}
);
);
Loading…
Cancel
Save