Fix flow of next courseware in showJS view

This commit is contained in:
Nathan Leniz
2015-03-12 00:03:56 +09:00
parent 7e5893afe6
commit 4b1be9c67a
2 changed files with 11 additions and 5 deletions

View File

@@ -70,6 +70,12 @@ $(document).ready(function() {
$('#complete-courseware-dialog').modal('show');
});
$('#complete-courseware-dialog').on('keypress', function(e) {
if (e.which === 13 || e === 13) {
$('#next-courseware-button').click();
}
});
$('#complete-bonfire-dialog').on('hidden.bs.modal', function() {
editor.focus();
});