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 +36 -14 4.4.2 → 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,
@@ -3465,19 +3472,19 @@
3465 3472
3466 3473 /******/ });
3467 3474 /************************************************************************/
3468 3475 /******/ // The module cache
3469 -/******/ var __webpack_module_cache__ = {};
3476 +/******/ const __webpack_module_cache__ = {};
3470 3477 /******/
3471 3478 /******/ // The require function
3472 3479 /******/ function __webpack_require__(moduleId) {
3473 3480 /******/ // Check if module is in cache
3474 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
3481 +/******/ const cachedModule = __webpack_module_cache__[moduleId];
3475 3482 /******/ if (cachedModule !== undefined) {
3476 3483 /******/ return cachedModule.exports;
3477 3484 /******/ }
3478 3485 /******/ // Create a new module (and put it into the cache)
3479 -/******/ var module = __webpack_module_cache__[moduleId] = {
3486 +/******/ const module = __webpack_module_cache__[moduleId] = {
3480 3487 /******/ // no module.id needed
3481 3488 /******/ // no module.loaded needed
3482 3489 /******/ exports: {}
3483 3490 /******/ };
@@ -3484,9 +3491,9 @@
3484 3491 /******/
3485 3492 /******/ // Execute the module function
3486 3493 /******/ if (!(moduleId in __webpack_modules__)) {
3487 3494 /******/ delete __webpack_module_cache__[moduleId];
3488 -/******/ var e = new Error("Cannot find module '" + moduleId + "'");
3495 +/******/ const e = new Error("Cannot find module '" + moduleId + "'");
3489 3496 /******/ e.code = 'MODULE_NOT_FOUND';
3490 3497 /******/ throw e;
3491 3498 /******/ }
3492 3499 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
@@ -3499,9 +3506,9 @@
3499 3506 /******/ /* webpack/runtime/compat get default export */
3500 3507 /******/ (() => {
3501 3508 /******/ // getDefaultExport function for compatibility with non-harmony modules
3502 3509 /******/ __webpack_require__.n = (module) => {
3503 -/******/ var getter = module && module.__esModule ?
3510 +/******/ const getter = module && module.__esModule ?
3504 3511 /******/ () => (module['default']) :
3505 3512 /******/ () => (module);
3506 3513 /******/ __webpack_require__.d(getter, { a: getter });
3507 3514 /******/ return getter;
@@ -3509,14 +3516,29 @@
3509 3516 /******/ })();
3510 3517 /******/
3511 3518 /******/ /* webpack/runtime/define property getters */
3512 3519 /******/ (() => {
3513 -/******/ // define getter functions for harmony exports
3520 +/******/ // define getter/value functions for harmony exports
3514 3521 /******/ __webpack_require__.d = (exports, definition) => {
3515 -/******/ for(var key in definition) {
3516 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3517 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3522 +/******/ if(Array.isArray(definition)) {
3523 +/******/ var i = 0;
3524 +/******/ while(i < definition.length) {
3525 +/******/ var key = definition[i++];
3526 +/******/ var binding = definition[i++];
3527 +/******/ if(!__webpack_require__.o(exports, key)) {
3528 +/******/ if(binding === 0) {
3529 +/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
3530 +/******/ } else {
3531 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
3532 +/******/ }
3533 +/******/ } else if(binding === 0) { i++; }
3518 3534 /******/ }
3535 +/******/ } else {
3536 +/******/ for(var key in definition) {
3537 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3538 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3539 +/******/ }
3540 +/******/ }
3519 3541 /******/ }
3520 3542 /******/ };
3521 3543 /******/ })();
3522 3544 /******/
@@ -3521,9 +3543,9 @@
3521 3543 /******/ })();
3522 3544 /******/
3523 3545 /******/ /* webpack/runtime/hasOwnProperty shorthand */
3524 3546 /******/ (() => {
3525 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
3547 +/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
3526 3548 /******/ })();
3527 3549 /******/
3528 3550 /******/ /* webpack/runtime/make namespace object */
3529 3551 /******/ (() => {
@@ -3528,9 +3550,9 @@
3528 3550 /******/ /* webpack/runtime/make namespace object */
3529 3551 /******/ (() => {
3530 3552 /******/ // define __esModule on exports
3531 3553 /******/ __webpack_require__.r = (exports) => {
3532 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3554 +/******/ if(Symbol.toStringTag) {
3533 3555 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3534 3556 /******/ }
3535 3557 /******/ Object.defineProperty(exports, '__esModule', { value: true });
3536 3558 /******/ };
@@ -3536,9 +3558,9 @@
3536 3558 /******/ };
3537 3559 /******/ })();
3538 3560 /******/
3539 3561 /************************************************************************/
3540 -var __webpack_exports__ = {};
3562 +let __webpack_exports__ = {};
3541 3563 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
3542 3564 (() => {
3543 3565 "use strict";
3544 3566 /*!*********************************************!*\