diff options
author | Robin <robin@Amaya.(none)> | 2010-04-25 15:04:13 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-04-25 15:04:13 +0200 |
commit | afc0ef420b58b92e38ea600c2eac972ed132fbac (patch) | |
tree | 3ced70c323eb110da0738b75556783953cf85322 /js/filebrowser.js | |
parent | c2bdd6134be53dcf822632192af10cf3cf80be1e (diff) | |
download | nextcloud-server-afc0ef420b58b92e38ea600c2eac972ed132fbac.tar.gz nextcloud-server-afc0ef420b58b92e38ea600c2eac972ed132fbac.zip |
bug fix when starting multiply uploads while the old ones arent finsihed, detect file actions on mimetype not on extention
Diffstat (limited to 'js/filebrowser.js')
-rw-r--r-- | js/filebrowser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/filebrowser.js b/js/filebrowser.js index f12cec44143..cc03fe33156 100644 --- a/js/filebrowser.js +++ b/js/filebrowser.js @@ -129,16 +129,16 @@ OC_FILES.browser.files.show=function(parent,fileList){ for(name in fileList){ file=fileList[name]; if(!OC_FILES.browser.files.fileNodes[file.name]){ - OC_FILES.browser.files.add(file.name,file.type,file.size,file.date); + OC_FILES.browser.files.add(file.name,file.type,file.size,file.date,file.mime); } } } } -OC_FILES.browser.files.add=function(name,type,size,date){ +OC_FILES.browser.files.add=function(name,type,size,date,mime){ if(name){ if(!size) size=0; if(!date) date=getTimeString(); - OC_FILES.files[name]=new OC_FILES.file(OC_FILES.dir,name,type); + OC_FILES.files[name]=new OC_FILES.file(OC_FILES.dir,name,type,mime); tr=document.createElement('tr'); OC_FILES.browser.files.fileNodes[name]=tr; OC_FILES.browser.files.tbody.appendChild(tr); |