Commit b1ef254363ebd5eb2120f1125fc2df9672747380
1 parent
0422de01df
Exists in
master
arreglos identacion y variable
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -131,7 +131,7 @@ angular.module('focaCrearCobranza').controller('cobranzaController', |
| 131 | 131 | $scope.editando = false; |
| 132 | 132 | focaBotoneraLateralService.startGuardar(); |
| 133 | 133 | $scope.saveLoading = true; |
| 134 | - var ar = JSON.parse($localStorage.rutas); | |
| 134 | + var rutaJson = JSON.parse($localStorage.rutas); | |
| 135 | 135 | function removeItemFromArr ( arr, item ) { |
| 136 | 136 | var i = arr.indexOf( item ); |
| 137 | 137 | |
| ... | ... | @@ -140,8 +140,8 @@ angular.module('focaCrearCobranza').controller('cobranzaController', |
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - removeItemFromArr( ar, 'cobranza/crear' ); | |
| 144 | - $localStorage.rutas = JSON.stringify(ar); | |
| 143 | + removeItemFromArr( rutaJson, 'cobranza/crear' ); | |
| 144 | + $localStorage.rutas = JSON.stringify(rutaJson); | |
| 145 | 145 | for (var i = 0; i < $scope.cobranza.facturas.length; i++) { |
| 146 | 146 | var cuerpoFactura = { |
| 147 | 147 | CYV: 'V', |
| ... | ... | @@ -828,9 +828,9 @@ angular.module('focaCrearCobranza').controller('cobranzaController', |
| 828 | 828 | ).then(function (data) { |
| 829 | 829 | if (data) { |
| 830 | 830 | $location.path('/'); |
| 831 | - var ar = JSON.parse($localStorage.rutas); | |
| 832 | - removeItemFromArr( ar, 'cobranza/crear' ); | |
| 833 | - $localStorage.rutas = JSON.stringify(ar); | |
| 831 | + var rutaJson = JSON.parse($localStorage.rutas); | |
| 832 | + removeItemFromArr(rutaJson, 'cobranza/crear'); | |
| 833 | + $localStorage.rutas = JSON.stringify(rutaJson); | |
| 834 | 834 | } |
| 835 | 835 | }); |
| 836 | 836 | } else { |