diff --git a/js/app/views/PlotUI.js b/js/app/views/PlotUI.js index f35dae6..b7ec3e9 100644 --- a/js/app/views/PlotUI.js +++ b/js/app/views/PlotUI.js @@ -164,12 +164,18 @@ Ext.define('amdaUI.PlotUI', { */ setTimeFromData : function(obj) { - var dateStart = new Date(obj.start.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); - var dateStop = new Date(obj.stop.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); - - this.timeSelector.intervalSel.setInterval(dateStart, dateStop); - this.timeSelector.intervalSel.updateDuration(); - }, + var dateStart = new Date(obj.start.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); + var dateStop = new Date(obj.stop.replace(/[T|Z]/g,' ').replace(/\-/g,'\/')); + + for (var i = 0; i < this.plotTabs.items.getCount(); ++i) + { + var plotTab = this.plotTabs.items.getAt(i).items.getAt(0); + plotTab.items.getAt(1).intervalSel.setInterval(dateStart, dateStop); + plotTab.updateTimeObject(); + } + + this.timeSelector.intervalSel.setInterval(dateStart, dateStop); + }, updateLinkedToMultiPlotMode : function(isLinkedToMultiPlotMode) { this.multiPlotIntervalPanel.setVisible(isLinkedToMultiPlotMode); -- libgit2 0.21.2