From c2468b4946afa968b03509cb606fe59ae1a175eb Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 7 Sep 2015 07:54:29 -0700 Subject: [PATCH] Tweak @bugron's improvements to our issue submission process --- client/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.js b/client/main.js index 30110eb97e..8dcc2a19db 100644 --- a/client/main.js +++ b/client/main.js @@ -69,14 +69,14 @@ $(document).ready(function() { $('#search-issue').unbind('click'); $('#search-issue').on('click', function() { var queryIssue = window.location.href.toString(); - $('#issue-modal').modal('hide'); window.open('https://github.com/FreeCodeCamp/FreeCodeCamp/issues?q=is:issue is:all '+ queryIssue.substr(queryIssue.lastIndexOf('challenges/') + 11).replace('/', ''), '_blank'); }); $('#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.'; - textMessage += ' My User Agent is: ' + navigator.userAgent + '.'; + var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue.'; + textMessage += ' User Agent is: ' + navigator.userAgent + '.'; + textMessage += ' Please describe how to reproduce this issue, and include links to screenshots if possible.%0A%0A'; 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');