summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-22 15:20:24 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-22 15:20:24 +0200
commitd5ba4ec825c0c0c207b40546a3c545ce95e46235 (patch)
treee6b7da24616ab86dced14e86d6f84130397c6a4f /files/js
parent13b7cb59ebea9726532cf8c171cad9899e6f21dc (diff)
downloadnextcloud-server-d5ba4ec825c0c0c207b40546a3c545ce95e46235.tar.gz
nextcloud-server-d5ba4ec825c0c0c207b40546a3c545ce95e46235.zip
some improvements in automatic svg replacement
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);
});