summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-01 15:47:17 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-01 15:47:40 +0200
commit492c0571a04135539c5b3857a6c1b3fda9abf40a (patch)
tree52642ebd4d828dea52c1cc9cde664c42751b9a25 /apps
parent86342224da06aafe93af883b2430533702caba70 (diff)
downloadnextcloud-server-492c0571a04135539c5b3857a6c1b3fda9abf40a.tar.gz
nextcloud-server-492c0571a04135539c5b3857a6c1b3fda9abf40a.zip
fix detection of public upload in filelist.js
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index f4ca098eed1..7027273664f 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -436,7 +436,7 @@ $(document).ready(function(){
}
var date=new Date();
var param = {};
- if ($('#publicUploadRequestToken')) {
+ if ($('#publicUploadRequestToken').length) {
param.download_url = document.location.href + '&download&path=/' + $('#dir').val() + '/' + uniqueName;
}
// create new file context