From 6a398fdb7d9ec0f306fa9d0a83ce2bef3146e43b Mon Sep 17 00:00:00 2001 From: Ghost-script Date: Apr 09 2015 22:25:42 +0000 Subject: [PATCH 1/3] Changing the way default parameter is assigned, so as to make it run across different browsers Fix for: http://pagure.dev.fedoraproject.org/pagure/issue/90 --- 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... From 708b5e245f2edab4423f34a331adb0138608a0a4 Mon Sep 17 00:00:00 2001 From: Ghost-script Date: Apr 09 2015 22:34:37 +0000 Subject: [PATCH 2/3] Request pull button 'hover' background colour issue fixed --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index e474dd4..2900dee 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -662,7 +662,7 @@ header.repo.forked > p { background-image: url(images/profile_button.png); } -#request_pull:hover a{ +#request_pull:hover { background-color: rgb(84, 138, 255); } From c2900b6563ffdbb665e860b7c0a590ccc7028bac Mon Sep 17 00:00:00 2001 From: Ghost-script Date: Apr 10 2015 04:35:47 +0000 Subject: [PATCH 3/3] Changed ternery operator statement to simple if else statement --- 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...