]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6808 @1:00 J'ai activé la mise à jour des icônes au départ du quiz
authorsoufiane <soufiane@cubedesigners.com>
Tue, 19 Mar 2024 15:08:50 +0000 (16:08 +0100)
committersoufiane <soufiane@cubedesigners.com>
Tue, 19 Mar 2024 15:08:50 +0000 (16:08 +0100)
js/quiz.js

index 49678845a80c7e20688f17aa70d2164758522489..ed676f07838697d7e233ff23ce65332181b96d4b 100644 (file)
@@ -84,6 +84,8 @@ Quiz.prototype = {
         this.animations.globalAnimations();
 
         this.progressbar.update();
+
+        this.updateIcons();
     },
 
     initTooltips: function () {
@@ -104,8 +106,10 @@ Quiz.prototype = {
 
             // L'icône est déjà en place
             if ($(this).children('svg.' + iconId).length) {
+                console.log('icone already load')
                 return;
             }
+
             // Si une autre icône est présente, on la supprime
             $(this).children('svg.svg-icon').remove();
             // Puis on ajoute l'icône
@@ -130,6 +134,7 @@ Quiz.prototype = {
         this.screens.reset();
         this.screens.intro.show();
         this.progressbar.update();
+        this.updateIcons();
     }
 }