Commit 04084c4e533cb54b2e62901f41719c39d6cfb159
1 parent
acafe456
Exists in
master
and in
96 other branches
Cleanup
Showing
1 changed file
with
5 additions
and
20 deletions
Show diff stats
js/app/views/PlotUI.js
... | ... | @@ -131,11 +131,11 @@ Ext.define('amdaUI.PlotUI', { |
131 | 131 | this.plotTabs.updateTimeObjects(); |
132 | 132 | }, |
133 | 133 | |
134 | - addTT : function(newTTName,newTTid,timeSelectorId) { | |
135 | - var crtTimeSelector = Ext.getCmp(timeSelectorId); | |
136 | - if (crtTimeSelector) | |
137 | - crtTimeSelector.addTT(newTTName,newTTid); | |
138 | - }, | |
134 | + addTT : function(newTTName,newTTid,timeSelectorId) { | |
135 | + var crtTimeSelector = Ext.getCmp(timeSelectorId); | |
136 | + if (crtTimeSelector) | |
137 | + crtTimeSelector.addTT(newTTName,newTTid); | |
138 | + }, | |
139 | 139 | |
140 | 140 | /** |
141 | 141 | * Set Start-Stop from parameter info (Local & MyData) |
... | ... | @@ -151,21 +151,6 @@ Ext.define('amdaUI.PlotUI', { |
151 | 151 | plotTab.setTime(dateStart, dateStop); |
152 | 152 | }, |
153 | 153 | |
154 | - forceActiveTab : function(tabId) { | |
155 | - for (var i = 0; i < this.plotTabs.items.getCount(); ++i) { | |
156 | - var plotTab = this.plotTabs.items.getAt(i).items.getAt(0); | |
157 | - if (plotTab.tabId == tabId) { | |
158 | - this.plotTabs.setActiveTab(i); | |
159 | - return; | |
160 | - } | |
161 | - } | |
162 | - }, | |
163 | - | |
164 | - insertPlotTab : function(tabData) { | |
165 | - var newTab = this.object.createNewTab(tabData); | |
166 | - this.plotTabs.addPlotTab(newTab,true); | |
167 | - }, | |
168 | - | |
169 | 154 | keepOnlySelectedTabInObject: function(showWarning, onSuccess) { |
170 | 155 | if (this.object.tabs().count() == 1) { |
171 | 156 | if (onSuccess) { |
... | ... |