Commit f30854747ebde9844db4b7ba179b2885fd3c7b81
1 parent
ef25294933
Exists in
master
cerrar ventana al aceptar alerta
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/js/controllerCerrarVehiculo.js
... | ... | @@ -40,7 +40,11 @@ angular.module('focaLogisticaPedidoRuta') |
40 | 40 | }; |
41 | 41 | focaLogisticaPedidoRutaService.cerrarDistribuicion(cierreDistribuicion) |
42 | 42 | .then(function() { |
43 | - focaModalService.alert('Vehículo cerrado con éxito'); | |
43 | + focaModalService | |
44 | + .alert('Vehículo cerrado con éxito') | |
45 | + .then(function() { | |
46 | + $scope.cancelar(); | |
47 | + }); | |
44 | 48 | } |
45 | 49 | ); |
46 | 50 | }; |