fix detection of public upload in filelist.js

This commit is contained in:
Robin Appelman 2013-07-01 15:47:17 +02:00
parent 86342224da
commit 492c0571a0
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ $(document).ready(function(){
} }
var date=new Date(); var date=new Date();
var param = {}; var param = {};
if ($('#publicUploadRequestToken')) { if ($('#publicUploadRequestToken').length) {
param.download_url = document.location.href + '&download&path=/' + $('#dir').val() + '/' + uniqueName; param.download_url = document.location.href + '&download&path=/' + $('#dir').val() + '/' + uniqueName;
} }
// create new file context // create new file context