further revisions to simplify bug modal
This commit is contained in:
@ -72,6 +72,12 @@ $(document).ready(function() {
|
|||||||
window.open('https://github.com/FreeCodeCamp/FreeCodeCamp/issues?q=is:issue is:all '+ queryIssue.substr(queryIssue.lastIndexOf('challenges/') + 11).replace('/', ''), '_blank');
|
window.open('https://github.com/FreeCodeCamp/FreeCodeCamp/issues?q=is:issue is:all '+ queryIssue.substr(queryIssue.lastIndexOf('challenges/') + 11).replace('/', ''), '_blank');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#help-ive-found-a-bug-wiki-article').unbind('click');
|
||||||
|
$('#help-ive-found-a-bug-wiki-article').on('click', function() {
|
||||||
|
var queryIssue = window.location.href.toString();
|
||||||
|
window.open("https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Help-I've-Found-a-Bug", '_blank');
|
||||||
|
});
|
||||||
|
|
||||||
$('#report-issue').unbind('click');
|
$('#report-issue').unbind('click');
|
||||||
$('#report-issue').on('click', function() {
|
$('#report-issue').on('click', function() {
|
||||||
var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue.';
|
var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue.';
|
||||||
|
@ -18,14 +18,9 @@
|
|||||||
.modal-header.challenge-list-header Did you find a bug?
|
.modal-header.challenge-list-header Did you find a bug?
|
||||||
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
||||||
.modal-body.text-center
|
.modal-body.text-center
|
||||||
h3 This will open our GitHub Issues page.
|
h3 Before you submit a new issue, read "Help I've Found a Bug" and browse other issues with this challenge.
|
||||||
h3 Please tell us how to reproduce the bug and link us to screenshots if possible.
|
a.btn.btn-lg.btn-success.btn-block#help-ive-found-a-bug-wiki-article(name='_csrf', value=_csrf) Read "Help I've Found a Bug"
|
||||||
h3 It's recommended first to search issues in GitHub. It could be a similar issue opened or already solved!
|
a.btn.btn-lg.btn-success.btn-block#search-issue(name='_csrf', value=_csrf) Browse other issues with this challenge
|
||||||
h3
|
|
||||||
| Also take a look at this helpful Wiki article:
|
|
||||||
br
|
|
||||||
a(href='https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Help-I%27ve-Found-a-Bug', target='_blank') Help I've Found a Bug
|
|
||||||
a.btn.btn-lg.btn-success.btn-block#search-issue(name='_csrf', value=_csrf) Search issues on this challenge in GitHub
|
|
||||||
a.btn.btn-lg.btn-primary.btn-block#report-issue(name='_csrf', value=_csrf) Create my GitHub issue
|
a.btn.btn-lg.btn-primary.btn-block#report-issue(name='_csrf', value=_csrf) Create my GitHub issue
|
||||||
a.btn.btn-lg.btn-info.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Cancel
|
a.btn.btn-lg.btn-info.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Cancel
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user