Commit 7847200da98dd17847ecdff1477b265d560703ad

Authored by Elena.Budnik
1 parent 345545a7

rm 8051

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
js/app/views/IntervalUI.js
... ... @@ -123,6 +123,9 @@ Ext.define('amdaUI.IntervalUI', {
123 123 var stop = this.getStopTime();
124 124 // if duration computable
125 125 if (stop != null && start != null) {
  126 + if ( stop <= start ) {
  127 + form.findField('stopDate').markInvalid('Stop Time must be after Start Time');
  128 + }
126 129 // compute offset
127 130 var zoneOffset = stop.getTimezoneOffset() - start.getTimezoneOffset();
128 131 // compute duration
... ...