From: soufiane Date: Thu, 18 Jan 2024 10:07:30 +0000 (+0100) Subject: wait #6624 @1:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4d4a40b60750534953b81349b4a218b790e7b66f;p=fluidbook-toolbox-quiz.git wait #6624 @1:00 --- diff --git a/js/quiz.screens.js b/js/quiz.screens.js index 03e0d40..72a5402 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -27,6 +27,9 @@ QuizScreens.prototype = { initEvents: function () { const $this = this; + // enabled click on item + $(".list-item").css("pointer-events","auto") + // Réinitialiser les réponses $(document).on("click", ".btn.reset", function () { $this.resetForm(); @@ -58,6 +61,10 @@ QuizScreens.prototype = { return false; } + if($this.getActiveScreenType() === 'draganddrop' && $this.activeScreen.find(".list-item").length > 0) { + return false; + } + // if ($(this).hasClass('validate')) { let review = $this.sendUserAnswers(); @@ -108,8 +115,11 @@ QuizScreens.prototype = { this.quiz.animations.fadeOut($el.find(".access")); } } + // disabled click on item + this.activeScreen.find(".list-item").css("pointer-events","none") }, + nextQuestion: function () { let nextQuestionIndex = this.quiz.question.currentPosition() + 1; let nextScreen;