diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-29 02:33:58 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-29 02:33:58 +0200 |
commit | 3758b0d707d1f4ce5db0b0f465014caa23ed77b1 (patch) | |
tree | e2a8fd03569e147512ec247c22b451d98d1f9d73 /files/js/filelist.js | |
parent | 952b83cbdce07eb95ae343fe25c6785b24b43b4b (diff) | |
download | nextcloud-server-3758b0d707d1f4ce5db0b0f465014caa23ed77b1.tar.gz nextcloud-server-3758b0d707d1f4ce5db0b0f465014caa23ed77b1.zip |
fix size of selected files with new uploaded files
Diffstat (limited to 'files/js/filelist.js')
-rw-r--r-- | files/js/filelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js index ce904075588..0695b482534 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -4,7 +4,7 @@ FileList={ }, addFile:function(name,size,lastModified,loading){ var img=(loading)?'img/loading.gif':'img/file.png'; - var html='<tr data-file="'+name+'" data-type="file">'; + var html='<tr data-file="'+name+'" data-type="file" data-size="'+size+'">'; if(name.indexOf('.')!=-1){ var basename=name.substr(0,name.indexOf('.')); var extention=name.substr(name.indexOf('.')); @@ -37,7 +37,7 @@ FileList={ } }, addDir:function(name,size,lastModified){ - var html='<tr data-file="'+name+'" data-type="dir">'; + 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+'"><strong>'+name+'</strong></a></td>'; if(size!='Pending'){ simpleSize=simpleFileSize(size); |