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