Improve functionality and allow rebinding if user doesn't hit control-enter

This commit is contained in:
terakilobyte
2015-04-23 20:14:20 -04:00
parent 98785184ef
commit 4b2c04dd59

View File

@ -45,7 +45,7 @@ block content
if (e.ctrlKey && e.keyCode == 13) {
$('#next-courseware-button').click();
} else {
$('#complete-courseware-dialog').bind('keypress', modalControlEnterHandler);
$('#complete-zipline-or-basejump-dialog').on('keypress', modalControlEnterHandler);
}
};