Commit 2e8be1ae1e4c7f15a07861f774c07c329e415008
1 parent
722af6d4
Exists in
master
and in
112 other branches
Set Start-Stop from parameter info
Showing
1 changed file
with
12 additions
and
6 deletions
Show diff stats
js/app/views/PlotUI.js
... | ... | @@ -164,12 +164,18 @@ Ext.define('amdaUI.PlotUI', { |
164 | 164 | */ |
165 | 165 | setTimeFromData : function(obj) |
166 | 166 | { |
167 | - var dateStart = new Date(obj.start.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); | |
168 | - var dateStop = new Date(obj.stop.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); | |
169 | - | |
170 | - this.timeSelector.intervalSel.setInterval(dateStart, dateStop); | |
171 | - this.timeSelector.intervalSel.updateDuration(); | |
172 | - }, | |
167 | + var dateStart = new Date(obj.start.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); | |
168 | + var dateStop = new Date(obj.stop.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); | |
169 | + | |
170 | + for (var i = 0; i < this.plotTabs.items.getCount(); ++i) | |
171 | + { | |
172 | + var plotTab = this.plotTabs.items.getAt(i).items.getAt(0); | |
173 | + plotTab.items.getAt(1).intervalSel.setInterval(dateStart, dateStop); | |
174 | + plotTab.updateTimeObject(); | |
175 | + } | |
176 | + | |
177 | + this.timeSelector.intervalSel.setInterval(dateStart, dateStop); | |
178 | + }, | |
173 | 179 | |
174 | 180 | updateLinkedToMultiPlotMode : function(isLinkedToMultiPlotMode) { |
175 | 181 | this.multiPlotIntervalPanel.setVisible(isLinkedToMultiPlotMode); |
... | ... |