Commit 8399773efbeaf51f0d048b4f9fdd5bc2252ff5e8
1 parent
5046fde412
Exists in
master
cambio history.back por location.path
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/js/controllerCisterna.js
| ... | ... | @@ -63,11 +63,13 @@ angular.module('focaAbmVehiculo') |
| 63 | 63 | '¿Está seguro de que desea salir? Se perderán todos los datos cargados.' |
| 64 | 64 | ).then(function(data) { |
| 65 | 65 | if (data) { |
| 66 | - $window.history.back(); | |
| 66 | + $location.path('/vehiculo/' + $routeParams.idVehiculo + '/' + | |
| 67 | + $scope.transportista); | |
| 67 | 68 | } |
| 68 | 69 | }); |
| 69 | 70 | } else { |
| 70 | - $window.history.back(); | |
| 71 | + $location.path('/vehiculo/' + $routeParams.idVehiculo + '/' + | |
| 72 | + $scope.transportista); | |
| 71 | 73 | } |
| 72 | 74 | }; |
| 73 | 75 |