Commit c6c811247acc1efd3bda745c1fc806a87286f2c1
1 parent
8ff26d118e
Exists in
master
and in
1 other branch
ok modal-prompt
Showing
1 changed file
with
10 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -40,8 +40,11 @@ angular.module('focaModalResumenCuenta') |
40 | 40 | |
41 | 41 | $scope.enviarMail = function(factura) { |
42 | 42 | focaModalService |
43 | - .prompt('Ingrese los emails separados por coma para enviar comprobante', | |
44 | - factura.cliente.MAIL) | |
43 | + .prompt({ | |
44 | + titulo: 'Ingrese los emails separados por coma para enviar comprobante', | |
45 | + value: factura.cliente.MAIL, | |
46 | + email: true | |
47 | + }) | |
45 | 48 | .then(function(res) { |
46 | 49 | return focaModalResumenCuentaService.enviarFacturaPorMail(res, factura); |
47 | 50 | }) |
... | ... | @@ -52,8 +55,11 @@ angular.module('focaModalResumenCuenta') |
52 | 55 | |
53 | 56 | $scope.enviarResumen = function() { |
54 | 57 | focaModalService |
55 | - .prompt('Ingrese los emails separados por coma para enviar comprobante', | |
56 | - $scope.results.facturas[0].cliente.MAIL) | |
58 | + .prompt({ | |
59 | + titulo: 'Ingrese los emails separados por coma para enviar comprobante', | |
60 | + value: $scope.results.facturas[0].cliente.MAIL, | |
61 | + email: true | |
62 | + }) | |
57 | 63 | .then(function(res) { |
58 | 64 | return focaModalResumenCuentaService.enviarResumenPorMail(res, |
59 | 65 | $scope.results); |