removes the checkbox and improves a condition

This commit is contained in:
Arsen Melikyan
2015-09-15 20:27:36 +04:00
parent 6d2c5a4f5f
commit 829257194d
2 changed files with 3 additions and 6 deletions

View File

@ -95,7 +95,7 @@ $(document).ready(function() {
'links to screenshots if possible.\n\n' 'links to screenshots if possible.\n\n'
].join(''); ].join('');
if ($('#include-code').prop('checked')) { if (editor.getValue().trim()) {
var type; var type;
switch (challengeType) { switch (challengeType) {
case challengeTypes.HTML_CSS_JQ: case challengeTypes.HTML_CSS_JQ:
@ -113,7 +113,7 @@ $(document).ready(function() {
type, type,
'\n', '\n',
editor.getValue(), editor.getValue(),
'\n```' '\n```\n\n'
].join(''); ].join('');
} }

View File

@ -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. 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#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 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.btn-block#report-issue(name='_csrf', value=_csrf) Create my GitHub issue
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-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
#help-modal.modal(tabindex='-1') #help-modal.modal(tabindex='-1')