Commit 679ab39184ece84dfe24592f33a4109f74d6c0f1

Authored by Menouar AZIB
1 parent 1c1dee6d

is isPlotFunction then don't set value for plotPreview-goto-Date Cmp

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
js/app/views/PlotComponents/PlotPreviewUI.js
... ... @@ -146,7 +146,8 @@ Ext.define('amdaPlotComp.PlotPreviewUI', {
146 146 this.panelImage.setSrc(this.getImageUrl(configResult.folder, configResult.plotFile));
147 147 var newTime = new Date(configResult.time);
148 148 newTime = Ext.Date.add(newTime, Ext.Date.MINUTE, newTime.getTimezoneOffset());
149   - Ext.getCmp('plotPreview-goto-Date' + configResult.interactiveId).setValue(newTime);
  149 + if (!this.isPlotFunction)
  150 + Ext.getCmp('plotPreview-goto-Date' + configResult.interactiveId).setValue(newTime);
150 151 var size = this.getImageSize();
151 152 this.panelImage.setSize(size.width, size.height);
152 153  
... ...