summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-02 03:17:26 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-02 03:17:26 +0200
commit5c941e57d289154d5c4de0aa8fb59467a8562e5f (patch)
treef5c47ca46e7636e916b71c329ccbd20fe149b0a1 /files
parent657a61e5379431a89596df9461e62bafcd6ee0da (diff)
downloadnextcloud-server-5c941e57d289154d5c4de0aa8fb59467a8562e5f.tar.gz
nextcloud-server-5c941e57d289154d5c4de0aa8fb59467a8562e5f.zip
fixed showing mimetypes for new files
Diffstat (limited to 'files')
-rw-r--r--files/js/filelist.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js
index 3f9b3984465..243c1113a47 100644
--- a/files/js/filelist.js
+++ b/files/js/filelist.js
@@ -12,8 +12,8 @@ FileList={
var basename=name;
var extention=false;
}
- html+='<td class="filename"><input type="checkbox" />';
- html+='<a class="name" style="background-image:url('+img+')" href="download.php?file='+$('#dir').val()+'/'+name+'"><span class="nametext">'+basename
+ html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
+ html+='<a class="name" href="download.php?file='+$('#dir').val()+'/'+name+'"><span class="nametext">'+basename
if(extention){
html+='<span class="extention">'+extention+'</span>';
}
@@ -38,7 +38,7 @@ FileList={
},
addDir:function(name,size,lastModified){
var html='<tr data-file="'+name+'" data-type="dir" data-size="'+size+'">';
- html+='<td class="filename"><input type="checkbox" /><a class="name" style="background-image:url(img/folder.png)" href="index.php?dir='+$('#dir').val()+'/'+name+'">'+name+'</a></td>';
+ html+='<td class="filename" style="background-image:url(img/folder.png)"><input type="checkbox" /><a class="name" href="index.php?dir='+$('#dir').val()+'/'+name+'">'+name+'</a></td>';
if(size!='Pending'){
simpleSize=simpleFileSize(size);
}else{
@@ -103,7 +103,7 @@ FileList={
loadingDone:function(name){
$('tr[data-file="'+name+'"]').data('loading',false);
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').attr('style','background-image:url('+getMimeIcon(mime)+')');
$('tr[data-file="'+name+'"] td.filename').draggable(dragOptions);
},
isLoading:function(name){