Commit e0bcd2abf4a19f91250d2a34a6414099345f5caa
1 parent
e50a0127bf
Exists in
master
función para abrir modal en el controlador
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -199,6 +199,23 @@ angular.module('focaCrearNotaPedido') |
| 199 | 199 | idLista = $scope.notaPedido.precioCondicion; |
| 200 | 200 | $scope.articulosTabla = []; |
| 201 | 201 | }; |
| 202 | + $scope.abrirModalListaPrecio = function() { | |
| 203 | + var modalInstance = $uibModal.open( | |
| 204 | + { | |
| 205 | + ariaLabelledBy: 'Busqueda de Precio Condición', | |
| 206 | + templateUrl: 'modal-precio-condicion.html', | |
| 207 | + controller: 'focaModalPrecioCondicionController', | |
| 208 | + size: 'lg' | |
| 209 | + } | |
| 210 | + ); | |
| 211 | + modalInstance.result.then( | |
| 212 | + function(precioCondicion) { | |
| 213 | + $scope.notaPedido.precioCondicion = precioCondicion.nombre; | |
| 214 | + }, function() { | |
| 215 | + | |
| 216 | + } | |
| 217 | + ); | |
| 218 | + }; | |
| 202 | 219 | } |
| 203 | 220 | ] |
| 204 | 221 | ) |