Commit 4f2d0ff9b92fc6dd2b8a5fa02a49b16e4ef08e51
1 parent
0a1b3d1b60
Exists in
master
fuera carga articulos, solo seleccionar puntos
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -51,7 +51,7 @@ angular.module('focaModalPuntoDescarga') |
51 | 51 | }else if(!$scope.puntosSeleccionados.length) { |
52 | 52 | $uibModalInstance.dismiss('cancel'); |
53 | 53 | }else { |
54 | - verCargaArticulos(); | |
54 | + enviarPuntos(); | |
55 | 55 | } |
56 | 56 | }; |
57 | 57 | |
... | ... | @@ -217,5 +217,12 @@ angular.module('focaModalPuntoDescarga') |
217 | 217 | }); |
218 | 218 | }); |
219 | 219 | } |
220 | + function enviarPuntos(){ | |
221 | + var result = []; | |
222 | + $scope.puntosSeleccionados.forEach(function(idx) { | |
223 | + result.push($scope.puntosDescarga[idx]); | |
224 | + }); | |
225 | + $uibModalInstance.close(result); | |
226 | + } | |
220 | 227 | }] |
221 | 228 | ); |