diff --git a/client/main.js b/client/main.js index 07db85211d..a49840b8ff 100644 --- a/client/main.js +++ b/client/main.js @@ -95,7 +95,7 @@ $(document).ready(function() { 'links to screenshots if possible.\n\n' ].join(''); - if ($('#include-code').prop('checked')) { + if (editor.getValue().trim()) { var type; switch (challengeType) { case challengeTypes.HTML_CSS_JQ: @@ -113,7 +113,7 @@ $(document).ready(function() { type, '\n', editor.getValue(), - '\n```' + '\n```\n\n' ].join(''); } diff --git a/server/views/partials/challenge-modals.jade b/server/views/partials/challenge-modals.jade index 91ffd3af84..4503e2ac17 100644 --- a/server/views/partials/challenge-modals.jade +++ b/server/views/partials/challenge-modals.jade @@ -21,10 +21,7 @@ h3 Before you submit a new issue, read "Help I've Found a Bug" and browse other issues with this challenge. 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" a.btn.btn-lg.btn-success.btn-block#search-issue(name='_csrf', value=_csrf) Browse other issues with this challenge - .btn-group.btn-block - a.btn.btn-lg.btn-primary.col-sm-11.col-xs-10#report-issue(name='_csrf', value=_csrf) Create my GitHub issue - .btn.btn-lg.btn-primary.col-sm-1.col-xs-2 - input(type="checkbox" title="Include My Code" checked)#include-code + 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 #help-modal.modal(tabindex='-1')