Commit b92494131f7fe84f23cba6dc4dafa49b5e803bd9

Authored by Elena.Budnik
1 parent 487a2e40

correct init value

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)
... ...