From 46a83b42a1ea5646af2b3300bb353da8350feadb Mon Sep 17 00:00:00 2001 From: bugron Date: Sun, 6 Sep 2015 11:40:06 +0400 Subject: [PATCH] removes the checkbox at all --- client/main.js | 6 ++---- server/views/partials/challenge-modals.jade | 5 ----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/client/main.js b/client/main.js index a74e8d1c94..30110eb97e 100644 --- a/client/main.js +++ b/client/main.js @@ -76,10 +76,8 @@ $(document).ready(function() { $('#report-issue').unbind('click'); $('#report-issue').on('click', function() { var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue. Please describe how to reproduce it, and include links to screenshots if possible.'; - if($('#user-agent-checkbox').is(':checked')) { - textMessage += ' My User Agent is: ' + navigator.userAgent + ''; - textMessage = textMessage.replace(';', ','); //GitHub cuts User Agent text because of ';' symbol so I just replace it with ',' - } + textMessage += ' My User Agent is: ' + navigator.userAgent + '.'; + textMessage = textMessage.replace(';', ','); //GitHub cuts User Agent text because of ';' symbol so I just replace it with ',' $('#issue-modal').modal('hide'); window.open(textMessage, '_blank'); }); diff --git a/server/views/partials/challenge-modals.jade b/server/views/partials/challenge-modals.jade index 43a102f704..b703581a3c 100644 --- a/server/views/partials/challenge-modals.jade +++ b/server/views/partials/challenge-modals.jade @@ -20,11 +20,6 @@ .modal-body.text-center h3 This will open our GitHub Issues page. h3 Please tell us how to reproduce the bug and link us to screenshots if possible. - h4.row - .col-xs-1.col-sm-1.col-md-1 - input#user-agent-checkbox(type='checkbox', checked) - .col-xs-11.col-sm-11.col-md-11 - label.text-warning.bg-info(for='user-agent-checkbox' style='cursor:pointer;') Include your OS and Browser version in the text of issue to provide more detailed information h3 It's recommended first to search issues in GitHub. It could be a similar issue opened or already solved! h3 | Also take a look at this helpful Wiki article: