Commit a08587385bd444b6f18f6aa3baccd942c0468848
1 parent
1d11b89a3f
Exists in
master
Cambio de "Cancelar" a "Salir"
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -104,10 +104,10 @@ angular.module('focaAbmPreciosCondiciones') |
104 | 104 | focaBotoneraLateralService.showPausar(true); |
105 | 105 | focaBotoneraLateralService.showCancelar(false); |
106 | 106 | focaBotoneraLateralService.showGuardar(true, $scope.guardar); |
107 | - focaBotoneraLateralService.addCustomButton('Cancelar', $scope.cancelar); | |
107 | + focaBotoneraLateralService.addCustomButton('Salir', $scope.salir); | |
108 | 108 | }); |
109 | 109 | |
110 | - $scope.cancelar = function() { | |
110 | + $scope.salir = function() { | |
111 | 111 | |
112 | 112 | if ($scope.formPrecioCondicion.$pristine == false) { |
113 | 113 | focaModalService.confirm( |
... | ... | @@ -117,6 +117,8 @@ angular.module('focaAbmPreciosCondiciones') |
117 | 117 | $location.path('/precio-condicion'); |
118 | 118 | } |
119 | 119 | }); |
120 | + } else { | |
121 | + $location.path('/precio-condicion'); | |
120 | 122 | } |
121 | 123 | }; |
122 | 124 | $scope.guardar = function() { |