Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Fixed lesson video re-opening
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Oswalt <[email protected]>
  • Loading branch information
Mierdin committed Feb 5, 2019
1 parent de96f06 commit ec56895
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/webapp/js/antidote.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async function requestLesson() {
} else {
diagram.src = liveLessonDetails.LessonDiagram;
diagramButton.disabled = false;
diagramButton.innerText = "Open Lesson Diagram";
diagramButton.innerText = "Lesson Diagram";
}

var videoButton = document.getElementById("btnOpenLessonVideo");
Expand All @@ -309,6 +309,11 @@ async function requestLesson() {
videoButton.innerText = "No Lesson Video";
} else {
document.getElementById("lessonVideoIframe").src = liveLessonDetails.LessonVideo;

$('#lessonVideoModal').on('show.bs.modal', function () {
$("#lessonVideoModal iframe").attr("src", liveLessonDetails.LessonVideo);
});

videoButton.disabled = false;
videoButton.innerText = "Lesson Video";
}
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/labs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
// Just reset the `src` attribute, which will "un-play" the video
$("#lessonVideoModal iframe").attr("src", document.getElementById("lessonVideoIframe"));
});


if (urlRoot.substring(0, 11) == "https://ptr") {
appendPTRBanner();
Expand Down

0 comments on commit ec56895

Please sign in to comment.