PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | assets/js/dist/frontend/quiz.js +9 -2 4.4.1 → 4.4.10 View file →
@@ -1214,10 +1214,16 @@
1214 1214 question,
1215 1215 isShow,
1216 1216 isShowIndex,
1217 1217 isShowHint,
1218 - status
1218 + status,
1219 + results
1219 1220 } = this.props;
1221 + if (results && results.questions && results.questions[question.id]) {
1222 + if (typeof results.questions[question.id].correct !== 'undefined') {
1223 + question.correct = results.questions[question.id].correct;
1224 + }
1225 + }
1220 1226 const QuestionTypes = LP.questionTypes.default;
1221 1227 const editPermalink = this.getEditLink();
1222 1228 if (editPermalink) {
1223 1229 jQuery('#wp-admin-bar-edit-lp_question').find('.ab-item').attr('href', editPermalink);
@@ -1332,9 +1338,10 @@
1332 1338 answered: getQuestionAnswered(id),
1333 1339 questionsRendered: getData('questionsRendered'),
1334 1340 editPermalink: getData('editPermalink'),
1335 1341 numPages: getData('numPages'),
1336 - mark: getQuestionMark(id) || ''
1342 + mark: getQuestionMark(id) || '',
1343 + results: getData('results')
1337 1344 };
1338 1345 }), (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.withDispatch)(dispatch => {
1339 1346 const {
1340 1347 updateUserQuestionAnswers,