Commit 487a2e402ecfc8ea337cc2c7a2b1cb7b6d59c85d
1 parent
e9e906ad
Exists in
master
and in
108 other branches
init for plot
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
js/app/views/PlotComponents/PlotTabPanel.js
... | ... | @@ -34,12 +34,15 @@ Ext.define('amdaPlotComp.PlotTabPanel', { |
34 | 34 | this.object = object; |
35 | 35 | this.removeAll(); |
36 | 36 | var selectedTab = this.object.get('active-tab-id'); |
37 | - | |
37 | + // init empty request | |
38 | + if (selectedTab == 0) | |
39 | + selectedTab++; | |
40 | + | |
38 | 41 | this.object.tabs().each(function (rec, index) { |
39 | 42 | var isSelected = false; |
40 | 43 | if (index+1 == selectedTab) |
41 | 44 | isSelected = true; |
42 | - | |
45 | + | |
43 | 46 | this.addPlotTab(rec, isSelected); |
44 | 47 | }, this); |
45 | 48 | }, | ... | ... |