mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Range checking for management jobs day input
This commit is contained in:
@@ -169,7 +169,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
||||
var max = (attr.awMax) ? scope.$eval(attr.awMax) : Infinity;
|
||||
if (!Empty(max) && !Empty(viewValue) && Number(viewValue) > max) {
|
||||
ctrl.$setValidity('awMax', false);
|
||||
return undefined;
|
||||
return viewValue;
|
||||
} else {
|
||||
ctrl.$setValidity('awMax', true);
|
||||
return viewValue;
|
||||
|
||||
Reference in New Issue
Block a user