diff --git a/js/questionset.js b/js/questionset.js index 0f880e4..5cd512a 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -12,11 +12,12 @@ // - h5pQuestionSetFinished: Triggered when a question is finished. (User presses Finish-button) window.H5P = window.H5P || {}; -H5P.QuestionSet = function (options) { +H5P.QuestionSet = function (options, contentId) { if ( !(this instanceof H5P.QuestionSet) ) - return new H5P.QuestionSet(options); + return new H5P.QuestionSet(options, contentId); var $ = H5P.jQuery; + var cp = H5P.getContentPath(contentId); var texttemplate = '' + '
' + @@ -124,7 +125,7 @@ H5P.QuestionSet = function (options) { for (var i=0; i