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

Updated questionStatisticCharts back button handler. Task #15584

parent 23c9dc95
......@@ -108,16 +108,28 @@ Ext.define('ARSnova.view.speaker.QuestionStatisticChart', {
scope: this,
style: 'min-width: 60px;',
handler: function () {
var object;
var tabPanel = ARSnova.app.mainTabPanel.tabPanel;
var speakerTabPanel = tabPanel.speakerTabPanel;
ARSnova.app.innerScrollPanel = false;
ARSnova.app.taskManager.stop(this.renewChartDataTask);
ARSnova.app.taskManager.stop(this.countActiveUsersTask);
if(ARSnova.app.userRole === ARSnova.app.USER_ROLE_SPEAKER && this.piActivated) {
var showcasePanel = tabPanel.speakerTabPanel.showcaseQuestionPanel;
var obj = tabPanel.speakerTabPanel.statisticTabPanel.roundManagementPanel.editButtons.questionObj;
showcasePanel.getActiveItem().questionObj = obj;
object = speakerTabPanel.statisticTabPanel.roundManagementPanel.editButtons.questionObj;
switch(speakerTabPanel) {
case speakerTabPanel.showcaseQuestionPanel:
speakerTabPanel.showcaseQuestionPanel.getActiveItem().questionObj = object;
break;
case speakerTabPanel.questionDetailsPanel:
speakerTabPanel.questionDetailsPanel.questionObj = object;
break;
default:
}
}
ARSnova.app.mainTabPanel.animateActiveItem(tabPanel, {
......
Supports Markdown
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