Skip to content

Commit

Permalink
removes the checkbox and improves a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bugron committed Sep 15, 2015
1 parent 6d2c5a4 commit 8292571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -113,7 +113,7 @@ $(document).ready(function() {
type,
'\n',
editor.getValue(),
'\n```'
'\n```\n\n'
].join('');
}

Expand Down
5 changes: 1 addition & 4 deletions server/views/partials/challenge-modals.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8292571

Please sign in to comment.