]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6927 @12:00
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 15:56:28 +0000 (17:56 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 15:56:28 +0000 (17:56 +0200)
js/quiz.match.js

index 59471e6e5198aea6585dfec8ce0d42fd89134ec3..7b21b0277d026130f334498ee07522828e0242b4 100644 (file)
@@ -12,7 +12,7 @@ function QuizMatch(quiz) {
 QuizMatch.prototype = {
     init: function () {
         const $this = this
-        $(document).on("click", ".move-slide", function () {
+        $(document).on("click", ".move-slide", function (e) {
             let move = $(this).attr("aria-keyshortcuts")
 
             if (move === "ARROWLEFT") {
@@ -22,7 +22,8 @@ QuizMatch.prototype = {
             }
         })
 
-        $(document).on("click", ".confirmMatch", function () {
+        $(document).on("click", ".confirmMatch", function (e) {
+            e.preventDefault()
             $this.confirmTheMatch()
         });
     },