diff options
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 93b0d97336e..5c6dc65d49d 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -67,11 +67,10 @@ FileActions={ if(img.call){ img=img(file); } - var html='<a href="#" original-title="'+name+'" class="action" style="display:none" />'; + var html='<a href="#" class="action" style="display:none">'; + if(img) { html+='<img src="'+img+'"/> '; } + html += name+'</a>'; var element=$(html); - if(img){ - element.append($('<img src="'+img+'"/>')); - } element.data('action',name); element.click(function(event){ event.stopPropagation(); |