diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-26 21:28:01 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-29 13:50:53 +0100 |
commit | eeebf21fceb83388d68600ddc3923f4a5cc4fe0a (patch) | |
tree | 1987201468e2a640b41bb5604a849cebf08752a2 | |
parent | 75d944f96addfb362efcb7111561748905066b41 (diff) | |
download | nextcloud-server-eeebf21fceb83388d68600ddc3923f4a5cc4fe0a.tar.gz nextcloud-server-eeebf21fceb83388d68600ddc3923f4a5cc4fe0a.zip |
fixes #1463 - file size is now displayed correctly in IE8
-rw-r--r-- | apps/files/js/files.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index a81928e5376..6c5536aafab 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -407,7 +407,9 @@ $(document).ready(function() { $('tr').filterAttr('data-file',file.name).data('mime',file.mime).data('id',file.id); var size = $('tr').filterAttr('data-file',file.name).find('td.filesize').text(); if(size==t('files','Pending')){ - $('tr').filterAttr('data-file',file.name).find('td.filesize').text(file.size); + var sizeElement = $('tr').filterAttr('data-file',file.name).find('td.filesize'); + sizeElement.text(simpleFileSize(file.size)); + sizeElement.attr('title',humanFileSize(file.size)); } //TODO update file upload size limit FileList.loadingDone(file.name, file.id); @@ -438,7 +440,9 @@ $(document).ready(function() { $('tr').filterAttr('data-file',file.name).data('mime',file.mime).data('id',file.id); var size = $('tr').filterAttr('data-file',file.name).find('td.filesize').text(); if(size==t('files','Pending')){ - $('tr').filterAttr('data-file',file.name).find('td.filesize').text(file.size); + var sizeElement = $('tr').filterAttr('data-file',file.name).find('td.filesize'); + sizeElement.text(simpleFileSize(file.size)); + sizeElement.attr('title',humanFileSize(file.size)); } //TODO update file upload size limit FileList.loadingDone(file.name, file.id); |