diff options
author | Simon Birnbach <simon@simon-birnbach.de> | 2012-03-17 13:56:33 +0100 |
---|---|---|
committer | Simon Birnbach <simon@simon-birnbach.de> | 2012-03-17 13:56:33 +0100 |
commit | 38072e1900b2f3b5d0d9d0d7bd78658026a8ab23 (patch) | |
tree | 4c4380f37dee3dba64fd9ad0903728748325f309 /files | |
parent | 9377b753507f6d47640d2815f1d61bd5fefd3b3e (diff) | |
download | nextcloud-server-38072e1900b2f3b5d0d9d0d7bd78658026a8ab23.tar.gz nextcloud-server-38072e1900b2f3b5d0d9d0d7bd78658026a8ab23.zip |
Fixed upload of undeleted file and size information
Diffstat (limited to 'files')
-rw-r--r-- | files/js/files.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/files/js/files.js b/files/js/files.js index a09bb9abe98..666e0c7602f 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -162,7 +162,7 @@ $(document).ready(function() { totalSize+=files[i].size; if(FileList.deleteFiles && FileList.deleteFiles.indexOf(files[i].name)!=-1){//finish delete if we are uploading a deleted file FileList.finishDelete(function(){ - $(that).change(); + $('.file_upload_start').change(); }); return; } @@ -206,13 +206,9 @@ $(document).ready(function() { } if(response[0] != undefined && response[0].status == 'success') { var file=response[0]; - if(file.size>0){ - var size=file.size; - }else{ - var size=t('files','Pending'); - } $('tr').filterAttr('data-file',file.name).data('mime',file.type); - if(size=='Pending'){ + 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); } FileList.loadingDone(file.name); |