Skip to content

Commit

Permalink
Merge pull request #2445 from QuizandSurveyMaster/CU-86cub5pc7-auto-s…
Browse files Browse the repository at this point in the history
…ubmit-quiz-when-time-over

fixed issue with auto submit quiz when time over
  • Loading branch information
zubairraeen authored Jan 11, 2024
2 parents c9bc96d + f184da3 commit a964212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a964212

Please sign in to comment.