[Time Controller] Change color when input is invalid

nasa/openmctweb#181
This commit is contained in:
Victor Woeltjen
2015-10-21 15:26:42 -07:00
parent 06bcd28558
commit 847c356063
2 changed files with 12 additions and 2 deletions

View File

@ -247,7 +247,9 @@ define(
try {
updateOuterStart(parseTimestamp(value));
updateBoundsTextForProperty($scope.ngModel, 'end');
$scope.boundsModel.startValid = true;
} catch (e) {
$scope.boundsModel.startValid = false;
return;
}
}
@ -256,7 +258,9 @@ define(
try {
updateOuterEnd(parseTimestamp(value));
updateBoundsTextForProperty($scope.ngModel, 'start');
$scope.boundsModel.endValid = true;
} catch (e) {
$scope.boundsModel.endValid = false;
return;
}
}