mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Use separate conditionals in time validity check
This commit is contained in:
parent
2d3aef601d
commit
08ea41f60b
@ -37,9 +37,13 @@ export default ['$filter', '$state', '$stateParams', 'AddSchedule', 'Wait',
|
||||
$scope.timeChange = () => {
|
||||
if (!Number($scope.schedulerStartHour)) {
|
||||
$scope.schedulerStartHour = '00';
|
||||
} else if (!Number($scope.schedulerStartMinute)) {
|
||||
}
|
||||
|
||||
if (!Number($scope.schedulerStartMinute)) {
|
||||
$scope.schedulerStartMinute = '00';
|
||||
} else if (!Number($scope.schedulerStartSecond)) {
|
||||
}
|
||||
|
||||
if (!Number($scope.schedulerStartSecond)) {
|
||||
$scope.schedulerStartSecond = '00';
|
||||
}
|
||||
|
||||
|
||||
@ -28,9 +28,13 @@ function($filter, $state, $stateParams, EditSchedule, Wait, $scope, $rootScope,
|
||||
$scope.timeChange = () => {
|
||||
if (!Number($scope.schedulerStartHour)) {
|
||||
$scope.schedulerStartHour = '00';
|
||||
} else if (!Number($scope.schedulerStartMinute)) {
|
||||
}
|
||||
|
||||
if (!Number($scope.schedulerStartMinute)) {
|
||||
$scope.schedulerStartMinute = '00';
|
||||
} else if (!Number($scope.schedulerStartSecond)) {
|
||||
}
|
||||
|
||||
if (!Number($scope.schedulerStartSecond)) {
|
||||
$scope.schedulerStartSecond = '00';
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user