diff --git a/js/app/views/IntervalUI.js b/js/app/views/IntervalUI.js index 14a039c..42e2f13 100644 --- a/js/app/views/IntervalUI.js +++ b/js/app/views/IntervalUI.js @@ -122,7 +122,7 @@ Ext.define('amdaUI.IntervalUI', { // get stop value var stop = this.getStopTime(); // if duration computable - if (stop != null && start != null) { + if (Ext.isDate(start) && Ext.isDate(stop)) { if ( stop <= start ) { form.findField('stopDate').markInvalid('Stop Time must be after Start Time'); } else { diff --git a/js/app/views/PlotComponents/PlotZoomPlug.js b/js/app/views/PlotComponents/PlotZoomPlug.js index 110dda9..dcb91ed 100644 --- a/js/app/views/PlotComponents/PlotZoomPlug.js +++ b/js/app/views/PlotComponents/PlotZoomPlug.js @@ -218,7 +218,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { items: [ { xtype: 'datefield', name: 'zoom-min-time', fieldLabel: 'Start Time', - format: 'Y/m/d H:i:s.u' + format: 'Y/m/d H:i:s.u', }, { xtype: 'datefield', name: 'zoom-max-time', fieldLabel: 'Stop Time', @@ -387,7 +387,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { this.form = new Ext.form.FormPanel({ frame: true, - width: 250, + width: 255, layout: { type: 'vbox', pack: 'start', -- libgit2 0.21.2