Tweaked how the modal is focused

This commit is contained in:
benmcmahon100
2015-09-04 21:51:34 +01:00
parent f7d7990c4f
commit 1c85bdf8bd

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();