From 431a7db9a98c1b4816d1f8737fb9bb83a662cf2f Mon Sep 17 00:00:00 2001 From: Giulio Gratta Date: Tue, 28 Feb 2017 14:06:00 -0800 Subject: [PATCH] Always hide in-video-quiz helper in LMS --- invideoquiz/public/js/src/invideoquiz.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invideoquiz/public/js/src/invideoquiz.js b/invideoquiz/public/js/src/invideoquiz.js index 0357c2c..68f1443 100644 --- a/invideoquiz/public/js/src/invideoquiz.js +++ b/invideoquiz/public/js/src/invideoquiz.js @@ -1,5 +1,6 @@ /* Javascript for InVideoQuizXBlock. */ function InVideoQuizXBlock(runtime, element) { + $('.in-video-quiz-block').closest('.vert').hide(); var videoId = $('.in-video-quiz-block').data('videoid'); if (!videoId || !InVideoQuizXBlock.config.hasOwnProperty(videoId)) { return; @@ -19,8 +20,6 @@ function InVideoQuizXBlock(runtime, element) { var intervalTimeout = 1500; $(function () { - $('.in-video-quiz-block').closest('.vert').hide(); - $('#seq_content .vert-mod .vert').each(function () { var component = $(this);