// enabled click on item
$(".list-item").css("pointer-events","auto").find('label').css("background-color",standardColor)
+ this.updateTabindexToQuestionMultiple();
+
// Réinitialiser les réponses
$(document).on("click", ".btn.reset", function (e) {
$this.resetForm();
$this.currentQuestionAnswers = [];
$this.quiz.progressbar.update();
- $this.updateTabindexToQuestionMultiple();
if (screen === 'outro') {
$this.outro.initEvents();
},
updateTabindexToQuestionMultiple: function() {
- if(this.getActiveScreenType() === "multiple") {
- $(".list-item").removeAttr("tabindex")
- let counter = 0;
- this.activeScreen.find(".list-item").each(function(index) {
- counter++
- $(this).attr('tabindex', counter)
- })
- }
+ let counter = 0;
+ $(".question-multiple .list-item").each(function() {
+ counter++
+ $(this).attr('tabindex', counter)
+ })
}
};