Merge branch 'master' of github.com:FreeCodeCamp/freecodecamp

This commit is contained in:
Quincy Larson
2015-05-26 09:38:22 -07:00
2 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,7 @@ function showCompletion() {
$('body').keydown(function(e) {
if (e.ctrlKey && e.keyCode == 13) {
$('#next-courseware-button').click();
$('#next-courseware-button').unbind('click');
}
});
}

View File

@ -154,6 +154,7 @@ $(document).ready(function() {
'BONFIRE': 5
};
$('#next-courseware-button').on('click', function() {
$('#next-courseware-button').unbind('click');
if ($('.signup-btn-nav').length < 1) {
switch (challengeType) {
case challengeTypes.HTML_CSS_JQ:
@ -172,6 +173,9 @@ $(document).ready(function() {
if (res) {
window.location.href = '/challenges/next-challenge';
}
}).fail(
function() {
window.location.href="/challenges";
}
);
break;