Skip to content

Commit

Permalink
QSM Hidden Timer Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mann47 committed Nov 20, 2024
1 parent a3bebf5 commit 1acf251
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1acf251

Please sign in to comment.