Skip to content

Commit

Permalink
Fix submit modal head inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
teemulehtinen committed Dec 2, 2016
1 parent 6d4adbc commit b06497a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exercise/static/exercise/chapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@

updateSubmission: function(input) {
this.updateSummary(input);
this.chapter.modalContent(input);
this.chapter.modalContent(
input.filter(this.settings.exercise_selector).contents()
);

// Update asynchronous feedback.
if (typeof($.aplusExerciseDetectWaits) == "function") {
Expand All @@ -269,7 +271,9 @@
var old_badges = exercise.element.find(exercise.settings.summary_selector + " .badge");
old_badges.eq(0).replaceWith(new_badges.eq(0).clone());
old_badges.eq(2).replaceWith(new_badges.eq(1).clone());
exercise.chapter.modalContent(data);
exercise.chapter.modalContent(
data.filter(this.settings.exercise_selector).contents()
);
}).fail(function() {
exercise.chapter.modalError(exercise.chapter.messages.error);
});
Expand Down

0 comments on commit b06497a

Please sign in to comment.