From 4d4a40b60750534953b81349b4a218b790e7b66f Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 18 Jan 2024 11:07:30 +0100 Subject: [PATCH] wait #6624 @1:00 --- js/quiz.screens.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.39.5