From 1acf251c3fb3847fbb59d922b81f6773dbe0ced8 Mon Sep 17 00:00:00 2001 From: manandeep singh Date: Wed, 20 Nov 2024 10:53:47 +0530 Subject: [PATCH] QSM Hidden Timer Fixes --- js/qsm-quiz.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index e9e31b84..eea3325f 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -52,6 +52,8 @@ var qsmTimerInterval = []; if (quiz.hasOwnProperty('timer_limit') && 0 != quiz.timer_limit) { QSM.initTimer(quizID); quizType = 'timer'; + } else if (jQuery('.qsm-quiz-container-' + quizID + ' #timer').val() == 0) { + qsmTimerInterval[quizID] = setInterval(function () { qmnTimeTakenTimer(quizID) }, 1000); } if (jQuery('.qsm-quiz-container-' + quizID + ' .qsm-submit-btn').is(':visible') && !jQuery('.qsm-quiz-container-' + quizID).hasClass('qsm_auto_pagination_enabled') ) { jQuery('.qsm-quiz-container-' + quizID + ' .qsm-quiz-comment-section').fadeIn();