Commit b92494131f7fe84f23cba6dc4dafa49b5e803bd9
1 parent
487a2e40
Exists in
master
and in
108 other branches
correct init value
Showing
2 changed files
with
2 additions
and
5 deletions
Show diff stats
js/app/models/PlotObjects/PlotRequestObject.js
... | ... | @@ -30,7 +30,7 @@ Ext.define('amdaPlotObj.PlotRequestObject', { |
30 | 30 | {name: 'one-file-per-interval', type: 'boolean'}, |
31 | 31 | {name: 'last-plotted-tab', type: 'int', defaultValue: 0}, |
32 | 32 | {name: 'last-tab-id', type: 'int', defaultValue: 0}, |
33 | - {name: 'active-tab-id', type: 'int', defaultValue: 0} | |
33 | + {name: 'active-tab-id', type: 'int', defaultValue: 1} | |
34 | 34 | ], |
35 | 35 | |
36 | 36 | hasMany: { | ... | ... |
js/app/views/PlotComponents/PlotTabPanel.js
... | ... | @@ -34,10 +34,7 @@ Ext.define('amdaPlotComp.PlotTabPanel', { |
34 | 34 | this.object = object; |
35 | 35 | this.removeAll(); |
36 | 36 | var selectedTab = this.object.get('active-tab-id'); |
37 | - // init empty request | |
38 | - if (selectedTab == 0) | |
39 | - selectedTab++; | |
40 | - | |
37 | + | |
41 | 38 | this.object.tabs().each(function (rec, index) { |
42 | 39 | var isSelected = false; |
43 | 40 | if (index+1 == selectedTab) | ... | ... |