Commit 1c8e9fb7 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Fix socket io reconnect caused by reference error.

parent 669e7cee
......@@ -406,11 +406,13 @@ Ext.define("ARSnova.controller.Questions", {
if (tP.getActiveItem() === tP.speakerTabPanel) {
var showcasePanel = panel.showcaseQuestionPanel;
if (showcasePanel.getActiveItem().getItemId() === id) {
if (answerCount === abstentionCount && answerCount > 0) {
showcasePanel.toolbar.setAnswerCounter(abstentionCount, Messages.ABSTENTION);
} else {
showcasePanel.toolbar.updateAnswerCounter(answerCount);
if (tP.speakerTabPanel.getActiveItem() === showcasePanel) {
if (showcasePanel.getActiveItem().getItemId() === id) {
if (answerCount === abstentionCount && answerCount > 0) {
showcasePanel.toolbar.setAnswerCounter(abstentionCount, Messages.ABSTENTION);
} else {
showcasePanel.toolbar.updateAnswerCounter(answerCount);
}
}
}
}
......
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