]> 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)
committerRobin Appelman <icewind@owncloud.com>
Mon, 1 Jul 2013 13:47:40 +0000 (15:47 +0200)
apps/files/js/filelist.js

index f4ca098eed154c4c8c5e72dbffb6dcce73777ff2..7027273664fd2a55719aa6d448a78ca3d4940556 100644 (file)
@@ -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