Commit ff29610c9c8dfc1a1ae79a83cb0856a42cd0f455

Authored by Hacene SI HADJ MOHAND
1 parent e7dad317

7522 Ok

Showing 1 changed file with 4 additions and 9 deletions   Show diff stats
js/app/views/PlotTabResultUI.js
@@ -376,6 +376,7 @@ Ext.define('amdaUI.PlotTabResultUI', { @@ -376,6 +376,7 @@ Ext.define('amdaUI.PlotTabResultUI', {
376 376
377 updatePlotImage: function(configResult, newPlot) { 377 updatePlotImage: function(configResult, newPlot) {
378 this.crtContext = configResult.context; 378 this.crtContext = configResult.context;
  379 +
379 380
380 this.crtTTFileIndex = configResult.ttFileIndex; 381 this.crtTTFileIndex = configResult.ttFileIndex;
381 382
@@ -509,15 +510,8 @@ Ext.define('amdaUI.PlotTabResultUI', { @@ -509,15 +510,8 @@ Ext.define('amdaUI.PlotTabResultUI', {
509 var ttFileIndex = this.crtTTFileIndex; 510 var ttFileIndex = this.crtTTFileIndex;
510 var ttintervalIndex = this.crtContext.page.ttIndex; 511 var ttintervalIndex = this.crtContext.page.ttIndex;
511 512
512 - if (ttintervalIndex <= 0){  
513 - if (ttFileIndex <= 0){  
514 - myDesktopApp.errorMsg('You are on the first interval of your request');  
515 - return;  
516 - }  
517 - else {  
518 - --ttFileIndex;  
519 - ttintervalIndex = 0;  
520 - } 513 + if (ttintervalIndex <= 0 && ttFileIndex>0){
  514 + --ttFileIndex;
521 } 515 }
522 else 516 else
523 --ttintervalIndex; 517 --ttintervalIndex;
@@ -533,6 +527,7 @@ Ext.define(&#39;amdaUI.PlotTabResultUI&#39;, { @@ -533,6 +527,7 @@ Ext.define(&#39;amdaUI.PlotTabResultUI&#39;, {
533 var ttintervalIndex = this.crtContext.page.ttIndex; 527 var ttintervalIndex = this.crtContext.page.ttIndex;
534 528
535 if (ttintervalIndex >= this.crtContext.page.ttNbIntervals-1){ 529 if (ttintervalIndex >= this.crtContext.page.ttNbIntervals-1){
  530 +
536 ++ttFileIndex; 531 ++ttFileIndex;
537 ttintervalIndex = 0; 532 ttintervalIndex = 0;
538 } 533 }