Commit 6d768658bda7d23ef0053efc6bd47055fa1d9c18

Authored by Benjamin Renard
1 parent 3f809629

Fix bug with interval selection for Zoom and milliseconds

js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js
... ... @@ -30,13 +30,17 @@ Ext.define('amdaPlotComp.intervalSelection.ZoomIntervalSelection', {
30 30 if (this._notValidValues()) {
31 31 myDesktopApp.warningMsg('The Input Values are not defined');
32 32 } else {
  33 +
  34 + var minVal = Ext.Date.format(this.getField1Value(), 'Y-m-d\\TH:i:s.u');
  35 + var maxVal = Ext.Date.format(this.getField2Value(), 'Y-m-d\\TH:i:s.u');
  36 +
33 37 this.hostCmp.callInteractivePlot({
34 38 'action': 'zoom',
35 39 'interactiveId': this.interactiveId,
36 40 'panelId': this.panelId,
37 41 'axeId': this.type,
38   - 'min': this.getField1Value(),
39   - 'max': this.getField2Value()
  42 + 'min': minVal,
  43 + 'max': maxVal
40 44 });
41 45  
42 46 this._resetHostCmpSelection();
... ...