From: soufiane Date: Wed, 22 May 2024 09:24:46 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=511547dfc7491b42c25da732527ae9ee1f0658f9;p=fluidbook-toolbox-quiz.git wip #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index ad086dd..c8e8879 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -18,7 +18,7 @@ QuizAccessibility.prototype = { $('[aria-keyshortcuts="' + key + '"]').each(function () { if ($this.quiz.utils.isEnabled($(this))) { - $(this).get(0).click(); + $(this).get(0).click((e) => { e.preventDefault() }); return true; } }); diff --git a/js/quiz.screens.js b/js/quiz.screens.js index 2aef4e5..6a81e01 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -46,10 +46,6 @@ QuizScreens.prototype = { $this.showExplaination(); }); - $(document).on("click", 'a[href="#"]', function(e) { - e.preventDefault() - }); - // Préparer les réponses du joueur dans l'objet this.responses // à chaque fois que le formulaire change de valeur $(document).on("change", ".active-screen form:not(.disabled)", function (e) {