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