Skip to content

Commit

Permalink
Merge pull request #2448 from QuizandSurveyMaster/CU-86cue443f-fix-co…
Browse files Browse the repository at this point in the history
…mpatibility-issue

Fixed advance question type compatibility with inline result
  • Loading branch information
zubairraeen authored Jan 23, 2024
2 parents 2b5855f + f5d1553 commit 4a1a5ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,13 @@ function qsm_question_quick_result_js(question_id, answer, answer_type = '', sho
got_ans = true;
}

return { "correct_index": correct_index, "success": correct_answer ? 'correct' : 'incorrect', "message": show_correct_info && got_ans ? correct_info_text : "" };
let returnObject = {
"correct_index": correct_index,
"success": correct_answer ? 'correct' : 'incorrect',
"message": show_correct_info && got_ans ? correct_info_text : ""
};

jQuery(document).trigger('qsm_question_quick_result_js_after', [returnObject, correct_answer, answer, answer_array, answer_type, settings, decrypt, question_id]);
return returnObject;
}
}

0 comments on commit 4a1a5ae

Please sign in to comment.