$this.nextQuestion();
}
});
-
- if(this.getActiveScreenType() === "multiple") {
- $(".list-item").removeAttr("tabindex")
- $(".active-screen .list-item").each(function(index) {
- $(this).attr('tabindex', index++)
- })
- }
},
instantReview: function (review) {
$this.resetForm();
$this.currentQuestionAnswers = [];
$this.quiz.progressbar.update();
+ $this.updateTabindexToQuestionMultiple();
if (screen === 'outro') {
$this.outro.initEvents();
reset: function () {
$("#screens").html(this.screensHTML);
+ },
+
+ updateTabindexToQuestionMultiple: function() {
+ if(this.getActiveScreenType() === "multiple") {
+ $(".list-item").removeAttr("tabindex")
+ this.activeScreen.find(".list-item").each(function(index) {
+ $(this).attr('tabindex', index++)
+ })
+ }
}
};