Merge branch 'master' of github.com:h5p/h5p-question-set
commit
b2f6dec79d
|
@ -890,17 +890,15 @@ H5P.QuestionSet = function (options, contentId, contentData) {
|
||||||
/**
|
/**
|
||||||
* Returns the complete state of question set and sub-content
|
* Returns the complete state of question set and sub-content
|
||||||
*
|
*
|
||||||
* @returns {Object}
|
* @returns {Object} current state
|
||||||
*/
|
*/
|
||||||
this.getCurrentState = function () {
|
this.getCurrentState = function () {
|
||||||
var state = {
|
return {
|
||||||
progress: currentQuestion,
|
progress: showingSolutions ? questionInstances.length - 1 : currentQuestion,
|
||||||
answers: questionInstances.map(function (qi) {
|
answers: questionInstances.map(function (qi) {
|
||||||
return qi.getCurrentState();
|
return qi.getCurrentState();
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
return state;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,8 @@
|
||||||
"H5P.DragQuestion 1.7",
|
"H5P.DragQuestion 1.7",
|
||||||
"H5P.Blanks 1.7",
|
"H5P.Blanks 1.7",
|
||||||
"H5P.MarkTheWords 1.6",
|
"H5P.MarkTheWords 1.6",
|
||||||
"H5P.DragText 1.5"
|
"H5P.DragText 1.5",
|
||||||
|
"H5P.TrueFalse 1.0"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue