From 492c0571a04135539c5b3857a6c1b3fda9abf40a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 1 Jul 2013 15:47:17 +0200 Subject: [PATCH] fix detection of public upload in filelist.js --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f4ca098eed..7027273664 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