Tweaked how the modal is focused

pull/3087/head
benmcmahon100 2015-09-04 21:51:34 +01:00
parent f7d7990c4f
commit 1c85bdf8bd
1 changed files with 2 additions and 1 deletions

View File

@ -421,7 +421,8 @@ function showCompletion() {
); );
var bonfireSolution = myCodeMirror.getValue(); var bonfireSolution = myCodeMirror.getValue();
var didCompleteWith = $('#completed-with').val() || null; var didCompleteWith = $('#completed-with').val() || null;
$('#complete-courseware-dialog').modal('show').focus(); $('#complete-courseware-dialog').modal('show');
$('#complete-courseware-dialog .modal-header').click();
$('#submit-challenge').click(function(e) { $('#submit-challenge').click(function(e) {
e.preventDefault(); e.preventDefault();