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 376  
377 377 updatePlotImage: function(configResult, newPlot) {
378 378 this.crtContext = configResult.context;
  379 +
379 380  
380 381 this.crtTTFileIndex = configResult.ttFileIndex;
381 382  
... ... @@ -509,15 +510,8 @@ Ext.define('amdaUI.PlotTabResultUI', {
509 510 var ttFileIndex = this.crtTTFileIndex;
510 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 516 else
523 517 --ttintervalIndex;
... ... @@ -533,6 +527,7 @@ Ext.define(&#39;amdaUI.PlotTabResultUI&#39;, {
533 527 var ttintervalIndex = this.crtContext.page.ttIndex;
534 528  
535 529 if (ttintervalIndex >= this.crtContext.page.ttNbIntervals-1){
  530 +
536 531 ++ttFileIndex;
537 532 ttintervalIndex = 0;
538 533 }
... ...