diff --git a/invideoquiz/invideoquiz.py b/invideoquiz/invideoquiz.py index aaf2f55..9ccdc88 100644 --- a/invideoquiz/invideoquiz.py +++ b/invideoquiz/invideoquiz.py @@ -48,7 +48,7 @@ class InVideoQuizXBlock(StudioEditableXBlockMixin, XBlock): timemap = String( display_name=_('Problem Timemap'), - default={}, + default='{}', scope=Scope.settings, help=_( 'A simple string field to define problem IDs ' diff --git a/invideoquiz/public/html/invideoquiz.html b/invideoquiz/public/html/invideoquiz.html index a957bd5..d935207 100644 --- a/invideoquiz/public/html/invideoquiz.html +++ b/invideoquiz/public/html/invideoquiz.html @@ -1,3 +1 @@ -
-

This is an XBlock to display problem components inside of videos.

-
+
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); diff --git a/setup.py b/setup.py index 885b6a2..e40d2fa 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ def run_tests(self): setup( name='invideoquiz-xblock', - version='0.2.0', + version='0.1.4', description='Helper XBlock to locate CAPA problems within videos.', license='AGPL v3', packages=[