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