fix courseware.json typo and make it easier to click checkboxes

This commit is contained in:
Michael Q Larson
2015-04-17 22:37:13 -07:00
parent 13d5b64427
commit 11ece0fda1
3 changed files with 10 additions and 3 deletions

View File

@@ -30,12 +30,16 @@ $(document).ready(function() {
.addClass('animated fadeInDown');
});
$('.step-text').on('click', function() {
$(this).siblings().children('input').trigger('click');
});
$('.challenge-list-checkbox').on('change', function() {
if ($(this).is(":checked")) {
$(this).parent().parent().children('.step-text').addClass('strikethrough text-primary');
$(this).parent().parent().children('.step-text').addClass('italic');
}
if (!$(this).is(":checked")) {
$(this).parent().parent().children('.step-text').removeClass('strikethrough text-primary');
$(this).parent().parent().children('.step-text').removeClass('italic');
}
});