From f184da3b0dd4788bae8f2329798060d76d8f0519 Mon Sep 17 00:00:00 2001 From: etchirag Date: Thu, 11 Jan 2024 16:53:12 +0530 Subject: [PATCH] fixed issue with auto submit quiz when time over --- js/qsm-quiz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index c378204a3..2a595d8c3 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -755,7 +755,7 @@ function qmnValidation(element, quiz_form_id) { by_pass = false; } - if (localStorage.getItem('mlw_time_quiz' + quiz_id) === null || 0 == localStorage.getItem('mlw_time_quiz' + quiz_id) || localStorage.getItem('mlw_time_quiz' + quiz_id) > 0.08 || by_pass === false) { + if (localStorage.getItem('mlw_time_quiz' + quiz_id) === null || (0 == localStorage.getItem('mlw_time_quiz' + quiz_id) && by_pass == false) || localStorage.getItem('mlw_time_quiz' + quiz_id) > 0.08 || by_pass === false) { if (jQuery(this).attr('class').indexOf('mlwRequiredNumber') > -1 && this.value === "" && +this.value != NaN) { qmnDisplayError(error_messages.number_error_text, jQuery(this), quiz_form_id); show_result_validation = false;