From 487a2e402ecfc8ea337cc2c7a2b1cb7b6d59c85d Mon Sep 17 00:00:00 2001 From: Elena.Budnik <ebudnik@irap.omp.eu> Date: Tue, 13 Nov 2018 17:02:23 +0100 Subject: [PATCH] init for plot --- js/app/views/PlotComponents/PlotTabPanel.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/app/views/PlotComponents/PlotTabPanel.js b/js/app/views/PlotComponents/PlotTabPanel.js index c0fb645..3c492b9 100644 --- a/js/app/views/PlotComponents/PlotTabPanel.js +++ b/js/app/views/PlotComponents/PlotTabPanel.js @@ -34,12 +34,15 @@ Ext.define('amdaPlotComp.PlotTabPanel', { this.object = object; this.removeAll(); var selectedTab = this.object.get('active-tab-id'); - + // init empty request + if (selectedTab == 0) + selectedTab++; + this.object.tabs().each(function (rec, index) { var isSelected = false; if (index+1 == selectedTab) isSelected = true; - + this.addPlotTab(rec, isSelected); }, this); }, -- libgit2 0.21.2