aboutsummaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js')
-rw-r--r--files/js/fileactions.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js
index a0a04ff1662..04943abf74a 100644
--- a/files/js/fileactions.js
+++ b/files/js/fileactions.js
@@ -85,6 +85,9 @@ FileActions={
}
if(actions['Delete']){
var img=FileActions.icons['Delete'];
+ if(img.call){
+ img=img(file);
+ }
var html='<a href="#" title="Delete" class="action" />';
var element=$(html);
if(img){
@@ -121,15 +124,15 @@ FileActions={
}
}
-FileActions.register('all','Download',OC.imagePath('core','actions/download'),function(filename){
+FileActions.register('all','Download',function(){return OC.imagePath('core','actions/download')},function(filename){
window.location='ajax/download.php?files='+filename+'&dir='+$('#dir').val();
});
-FileActions.register('all','Delete',OC.imagePath('core','actions/delete'),function(filename){
+FileActions.register('all','Delete',function(){return OC.imagePath('core','actions/delete')},function(filename){
FileList.delete(filename);
});
-FileActions.register('all','Rename',OC.imagePath('core','actions/rename'),function(filename){
+FileActions.register('all','Rename',function(){return OC.imagePath('core','actions/rename')},function(filename){
FileList.rename(filename);
});