diff --git a/js/app/views/PlotTabResultUI.js b/js/app/views/PlotTabResultUI.js index 0927dcd..b226f57 100644 --- a/js/app/views/PlotTabResultUI.js +++ b/js/app/views/PlotTabResultUI.js @@ -376,6 +376,7 @@ Ext.define('amdaUI.PlotTabResultUI', { updatePlotImage: function(configResult, newPlot) { this.crtContext = configResult.context; + this.crtTTFileIndex = configResult.ttFileIndex; @@ -509,15 +510,8 @@ Ext.define('amdaUI.PlotTabResultUI', { var ttFileIndex = this.crtTTFileIndex; var ttintervalIndex = this.crtContext.page.ttIndex; - if (ttintervalIndex <= 0){ - if (ttFileIndex <= 0){ - myDesktopApp.errorMsg('You are on the first interval of your request'); - return; - } - else { - --ttFileIndex; - ttintervalIndex = 0; - } + if (ttintervalIndex <= 0 && ttFileIndex>0){ + --ttFileIndex; } else --ttintervalIndex; @@ -533,6 +527,7 @@ Ext.define('amdaUI.PlotTabResultUI', { var ttintervalIndex = this.crtContext.page.ttIndex; if (ttintervalIndex >= this.crtContext.page.ttNbIntervals-1){ + ++ttFileIndex; ttintervalIndex = 0; } -- libgit2 0.21.2