Unbind click handler on next-courseware-button to prevent repeated presses from advancing more than one challenge

This commit is contained in:
terakilobyte
2015-05-26 12:32:50 -04:00
parent 9a7a8bacfc
commit fa43dd1051
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');
}
});
}