diff options
author | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-04-15 13:28:11 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-04-15 13:34:30 +0200 |
commit | d32799e4bf48412d71222401dba84aaab47a75a7 (patch) | |
tree | 0db2c7065b5d6263bbc2a204d1b29c08b1ea6484 /files/js/fileactions.js | |
parent | 5868199e85b88f81f3b75fa2d203bb2074cb5215 (diff) | |
download | nextcloud-server-d32799e4bf48412d71222401dba84aaab47a75a7.tar.gz nextcloud-server-d32799e4bf48412d71222401dba84aaab47a75a7.zip |
show text for file actions
Diffstat (limited to 'files/js/fileactions.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(); |