Commit 135163358aafba2f16ef6bd5037a0221c9420c90
1 parent
9f2d599dd7
Exists in
develop
arreglos
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
src/js/controllerMail.js
| ... | ... | @@ -56,8 +56,9 @@ angular.module('focaModal') |
| 56 | 56 | } |
| 57 | 57 | $scope.descargado = true; |
| 58 | 58 | $scope.esperando = true; |
| 59 | - $scope.mailCliente = rutaEnvioComprobante.mailCliente; | |
| 59 | + rutaEnvioComprobante.mailCliente = $scope.mailCliente; | |
| 60 | 60 | Object.assign(options.options, { receiver: $scope.mailCliente }); |
| 61 | + console.log('ruta',rutaEnvioComprobante) | |
| 61 | 62 | |
| 62 | 63 | focaModalService |
| 63 | 64 | .enviarCorreo(rutaEnvioComprobante.url, options.options) |
| ... | ... | @@ -76,6 +77,8 @@ angular.module('focaModal') |
| 76 | 77 | emails.forEach(function (email) { |
| 77 | 78 | if (!regexMail.test(email.trim())) result = false; |
| 78 | 79 | }); |
| 80 | + console.log('email:',emails) | |
| 81 | + console.log('result:',result) | |
| 79 | 82 | return result; |
| 80 | 83 | } |
| 81 | 84 | } |