From ff29610c9c8dfc1a1ae79a83cb0856a42cd0f455 Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND Date: Fri, 28 Feb 2020 14:27:34 +0100 Subject: [PATCH] 7522 Ok --- js/app/views/PlotTabResultUI.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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