Skip to content

Commit

Permalink
Move & rename check for problem to display
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio Gratta committed Dec 15, 2016
1 parent 84a8460 commit 711472f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions invideoquiz/public/css/invideoquiz.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
}
#seq_content .vert-mod .vert.in-video-problem-wrapper .in-video-problem {
position: absolute;
top: 50px;
top: 35px;
padding: 25px 25px 0 25px;
background: white;
box-sizing: border-box;
width: 100%;
height: 461px;
height: 467px;
overflow-y: scroll;
z-index: 99;
}
Expand Down
4 changes: 2 additions & 2 deletions invideoquiz/public/js/src/invideoquiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function InVideoQuizXBlock(runtime, element) {
var problemToDisplayId = problemTimesMap[videoTime];
if (problemToDisplayId && canDisplayProblem) {
$('.wrapper-downloads, .video-controls', video).hide();
var hasProblemToDisplay = $(this).data('id').indexOf(problemToDisplayId) !== -1;
$('#seq_content .vert-mod .vert').each(function () {
if (hasProblemToDisplay) {
var isProblemToDisplay = $(this).data('id').indexOf(problemToDisplayId) !== -1;
if (isProblemToDisplay) {
problemToDisplay = $('.xblock-student_view', this)
videoState.videoPlayer.pause();
problemToDisplay.show();
Expand Down

0 comments on commit 711472f

Please sign in to comment.