Commit 8b1a8c67aa4be751c493cde4e69cbbfeed6d3c20

Authored by Hacene SI HADJ MOHAND
1 parent 46bd4591

patch bug ouverture operation plot

js/app/views/IntervalUI.js
... ... @@ -122,7 +122,7 @@ Ext.define('amdaUI.IntervalUI', {
122 122 // get stop value
123 123 var stop = this.getStopTime();
124 124 // if duration computable
125   - if (stop != null && start != null) {
  125 + if (Ext.isDate(start) && Ext.isDate(stop)) {
126 126 if ( stop <= start ) {
127 127 form.findField('stopDate').markInvalid('Stop Time must be after Start Time');
128 128 } else {
... ...
js/app/views/PlotComponents/PlotZoomPlug.js
... ... @@ -218,7 +218,7 @@ Ext.define(&#39;amdaPlotComp.PlotZoomPlug&#39;, {
218 218 items: [
219 219 {
220 220 xtype: 'datefield', name: 'zoom-min-time', fieldLabel: 'Start Time',
221   - format: 'Y/m/d H:i:s.u'
  221 + format: 'Y/m/d H:i:s.u',
222 222 },
223 223 {
224 224 xtype: 'datefield', name: 'zoom-max-time', fieldLabel: 'Stop Time',
... ... @@ -387,7 +387,7 @@ Ext.define(&#39;amdaPlotComp.PlotZoomPlug&#39;, {
387 387  
388 388 this.form = new Ext.form.FormPanel({
389 389 frame: true,
390   - width: 250,
  390 + width: 255,
391 391 layout: {
392 392 type: 'vbox',
393 393 pack: 'start',
... ...