Range checking for management jobs day input

This commit is contained in:
John Mitchell
2015-02-06 18:08:17 -05:00
parent 753b5f41b4
commit a9e4413a82
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;