diff --git a/pagure/static/upload.js b/pagure/static/upload.js index 3f56d15..956e731 100644 --- a/pagure/static/upload.js +++ b/pagure/static/upload.js @@ -104,7 +104,8 @@ function doUpload(csrf_token, files) { }); } -function initDropbox(csrf_token, id, upload=true) { +function initDropbox(csrf_token, id, upload) { + upload = typeof upload !== 'undefined' ? a : true; var $dropbox = $(id); // On drag enter...