diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:31:27 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:31:27 +0200 |
commit | 57f7ff2dbdbef977483c0078048181ea1b7630f2 (patch) | |
tree | 05f05544a7a73d0d46fcdeb6667433471bf1fc40 /apps/files/js/files.js | |
parent | 7279a07ca20949cf3cee82faf064d6aae8cf0a99 (diff) | |
download | nextcloud-server-57f7ff2dbdbef977483c0078048181ea1b7630f2.tar.gz nextcloud-server-57f7ff2dbdbef977483c0078048181ea1b7630f2.zip |
communicate size of newly created file back and update UI
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 53fc25f41b0..e1c53184dd1 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -365,7 +365,9 @@ $(document).ready(function() { FileList.addFile(name,0,date,false,hidden); var tr=$('tr').filterAttr('data-file',name); tr.attr('data-mime',result.data.mime); + tr.attr('data-size',result.data.size); tr.attr('data-id', result.data.id); + tr.find('.filesize').text(humanFileSize(result.data.size)); getMimeIcon(result.data.mime,function(path){ tr.find('td.filename').attr('style','background-image:url('+path+')'); }); |