Skip to content

Commit 32dc2f3

Browse files
authored
Merge pull request #4 from Stanford-Online/giulio/fix-invideoquiz-js
Move & rename check for problem to display
2 parents 84a8460 + 711472f commit 32dc2f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

invideoquiz/public/css/invideoquiz.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717
#seq_content .vert-mod .vert.in-video-problem-wrapper .in-video-problem {
1818
position: absolute;
19-
top: 50px;
19+
top: 35px;
2020
padding: 25px 25px 0 25px;
2121
background: white;
2222
box-sizing: border-box;
2323
width: 100%;
24-
height: 461px;
24+
height: 467px;
2525
overflow-y: scroll;
2626
z-index: 99;
2727
}

invideoquiz/public/js/src/invideoquiz.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function InVideoQuizXBlock(runtime, element) {
8484
var problemToDisplayId = problemTimesMap[videoTime];
8585
if (problemToDisplayId && canDisplayProblem) {
8686
$('.wrapper-downloads, .video-controls', video).hide();
87-
var hasProblemToDisplay = $(this).data('id').indexOf(problemToDisplayId) !== -1;
8887
$('#seq_content .vert-mod .vert').each(function () {
89-
if (hasProblemToDisplay) {
88+
var isProblemToDisplay = $(this).data('id').indexOf(problemToDisplayId) !== -1;
89+
if (isProblemToDisplay) {
9090
problemToDisplay = $('.xblock-student_view', this)
9191
videoState.videoPlayer.pause();
9292
problemToDisplay.show();

0 commit comments

Comments
 (0)