diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-29 01:36:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-29 01:37:08 +0200 |
commit | 6d0c8ea7e4c15e2a4072e0951eac3c0f64b2fbdc (patch) | |
tree | 5d412befba3f056821ce74ef0b4293b0b4fc8b3d /files/js/filelist.js | |
parent | dbcebba8826be76eca141a28c29b4dd8d051291f (diff) | |
download | nextcloud-server-6d0c8ea7e4c15e2a4072e0951eac3c0f64b2fbdc.tar.gz nextcloud-server-6d0c8ea7e4c15e2a4072e0951eac3c0f64b2fbdc.zip |
use proper file icons for image and audio files
Diffstat (limited to 'files/js/filelist.js')
-rw-r--r-- | files/js/filelist.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js index 252a9c95807..a53ad672e42 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -96,7 +96,8 @@ FileList={ }, loadingDone:function(name){ $('tr[data-file="'+name+'"]').data('loading',false); - $('tr[data-file="'+name+'"] td.filename a').attr('style','background-image:url(img/file.png'); + var mime=$('tr[data-file="'+name+'"]').data('mime'); + $('tr[data-file="'+name+'"] td.filename a').attr('style','background-image:url('+getMimeIcon(mime)+')'); $('tr[data-file="'+name+'"] td.filename').draggable(dragOptions); }, isLoading:function(name){ |