Merge pull request #67 from ansible/mng_jobs_range_check

Range checking for management jobs day input
This commit is contained in:
jlmitch5
2015-02-10 10:31:37 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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;