Commit dd5a7892 authored by Andreas Gärtner's avatar Andreas Gärtner

Fix javascript error on flashcardContainer hide (speaker showcase panel)

parent 7f8150cf
......@@ -409,8 +409,11 @@ Ext.define('ARSnova.view.Question', {
} else {
this.answerList.hide(true);
button.setText(Messages.SHOW_FLASHCARD_ANSWER);
ARSnova.app.mainTabPanel.tabPanel.userQuestionsPanel.next();
ARSnova.app.mainTabPanel.tabPanel.userQuestionsPanel.checkIfLastAnswer();
if (!this.viewOnly) {
ARSnova.app.mainTabPanel.tabPanel.userQuestionsPanel.next();
ARSnova.app.mainTabPanel.tabPanel.userQuestionsPanel.checkIfLastAnswer();
}
}
},
scope: this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment