parent
0e50523853
commit
d441f67b70
|
@ -109,6 +109,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
var up;
|
var up;
|
||||||
renderSolutions = false;
|
renderSolutions = false;
|
||||||
|
|
||||||
|
var $template = $(template.render(params));
|
||||||
// Set overrides for questions
|
// Set overrides for questions
|
||||||
var override;
|
var override;
|
||||||
if (params.override.showSolutionButton || params.override.retryButton) {
|
if (params.override.showSolutionButton || params.override.retryButton) {
|
||||||
|
@ -135,6 +136,11 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
// Extend subcontent with the overrided settings.
|
// Extend subcontent with the overrided settings.
|
||||||
$.extend(question.params.behaviour, override);
|
$.extend(question.params.behaviour, override);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
question.params = question.params || {};
|
||||||
|
question.params.overrideSettings = question.params.overrideSettings || {};
|
||||||
|
question.params.overrideSettings.$confirmationDialogParent = $template;
|
||||||
|
|
||||||
var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined, {parent: self});
|
var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined, {parent: self});
|
||||||
questionInstance.on('resize', function () {
|
questionInstance.on('resize', function () {
|
||||||
up = true;
|
up = true;
|
||||||
|
@ -404,7 +410,8 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render own DOM into target.
|
// Render own DOM into target.
|
||||||
$myDom.html(template.render(params));
|
$myDom.children().remove();
|
||||||
|
$myDom.append($template);
|
||||||
if (params.backgroundImage !== undefined) {
|
if (params.backgroundImage !== undefined) {
|
||||||
$myDom.css({
|
$myDom.css({
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
|
Loading…
Reference in New Issue