summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-26 21:28:01 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-26 21:28:01 +0100
commit586a47b186c96cea2cb0e3182fb559e79f1730be (patch)
tree2cdf8f45b0c27364fe6db018e58c728fa3060cae /apps
parente0e5cb73bf27f96d92140a7ae3b61dface438a09 (diff)
downloadnextcloud-server-586a47b186c96cea2cb0e3182fb559e79f1730be.tar.gz
nextcloud-server-586a47b186c96cea2cb0e3182fb559e79f1730be.zip
fixes #1463 - file size is now displayed correctly in IE8
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index c41f89e074a..606f4a5e3f5 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);