Commit d4dc99c2430adcb4f89c9c54841d993fb955641a

Authored by Marcelo Puebla
1 parent 5a5cb94b5a
Exists in develop

Fix

al ingresar correo
src/js/controllerMail.js
... ... @@ -43,10 +43,10 @@ angular.module('focaModal')
43 43 $scope.esperando = false;
44 44 });
45 45 };
46   - $scope.enviarComprobante = function () {
  46 + $scope.enviarComprobante = function (key) {
47 47 var rutaEnvioComprobante;
48 48 rutaEnvioComprobante = $scope.checkboxVar === true ? options.envioSinValorizar : options.envio;
49   - enviarCorreo(rutaEnvioComprobante, 13);
  49 + enviarCorreo(rutaEnvioComprobante, key);
50 50 }
51 51 enviarCorreo = function (rutaEnvioComprobante, key) {
52 52 if (key === 13) {
... ... @@ -71,6 +71,7 @@ angular.module('focaModal')
71 71 }
72 72 };
73 73 function validarMail() {
  74 + $scope.mailCliente = $scope.mailCliente.toLowerCase();
74 75 var emails = $scope.mailCliente.split(',');
75 76 var result = true;
76 77 emails.forEach(function (email) {
src/views/modal-mail.html
... ... @@ -12,8 +12,8 @@
12 12 <label>Enviar correo a</label>
13 13 <div class="d-flex">
14 14 <input
15   - type="email"
16   - class="form-control col-9"
  15 + type="text"
  16 + class="form-control col-9 text-transform-none"
17 17 ng-model="mailCliente"
18 18 ng-keypress="enviarComprobante($event.keyCode)"
19 19 teclado-virtual/>