Fixed so not all behaviour of subcontent will be overwritten.

d3summaryChart
Thomas Marstrander 2014-12-05 11:55:36 +01:00
parent 33f9ea3ba1
commit 41063026b4
1 changed files with 3 additions and 5 deletions

View File

@ -117,11 +117,9 @@ H5P.QuestionSet = function (options, contentId) {
// override content parameters. // override content parameters.
if (params.override.overrideButtons) { if (params.override.overrideButtons) {
// Extend subcontent with the overrided settings. // Extend subcontent with the overrided settings.
$.extend(question.params, { $.extend(question.params.behaviour, {
behaviour: {
enableRetry: params.override.overrideRetry, enableRetry: params.override.overrideRetry,
enableSolutionsButton: params.override.overrideShowSolutionButton enableSolutionsButton: params.override.overrideShowSolutionButton
}
}); });
} }