Commit 0fe898fc64bb709031908db204e8b20a8f73440a
1 parent
401217953c
Exists in
develop
fix
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -227,13 +227,13 @@ angular.module('focaAbmChofer') |
| 227 | 227 | // No permito numero ni caracteres especiles en nombre de chofer |
| 228 | 228 | if (!/^([a-zA-ZÀ-ÿ ])*$/.test(chofer.nombre)) { |
| 229 | 229 | focaModalService.alert('el campo Nombre no debe incluir números o símbolos'); |
| 230 | - $scope.chofer.nombre = ''; | |
| 230 | + chofer.nombre = ''; | |
| 231 | 231 | return |
| 232 | 232 | } |
| 233 | 233 | // Solo numeros en el campo documento |
| 234 | 234 | if (!/^([0-9])*$/.test(chofer.dni)) { |
| 235 | 235 | focaModalService.alert('el campo DNI solo puede incluir números'); |
| 236 | - $scope.chofer.dni = ''; | |
| 236 | + chofer.dni = ''; | |
| 237 | 237 | return |
| 238 | 238 | } |
| 239 | 239 | } |