]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix detection of public upload in filelist.js
authorRobin Appelman <icewind@owncloud.com>
Mon, 1 Jul 2013 13:47:17 +0000 (15:47 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 1 Jul 2013 17:41:47 +0000 (19:41 +0200)
apps/files/js/filelist.js

index 27148b6d87e44c57583da58b3abf6b17fa09038d..ad69f0b32689512a0997e48d8930d790e329dbc2 100644 (file)
@@ -437,7 +437,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