From e0bcd2abf4a19f91250d2a34a6414099345f5caa Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Thu, 18 Oct 2018 13:04:38 -0300 Subject: [PATCH] =?UTF-8?q?funci=C3=B3n=20para=20abrir=20modal=20en=20el?= =?UTF-8?q?=20controlador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/js/controller.js b/src/js/controller.js index 4484af6..927d916 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -199,6 +199,23 @@ angular.module('focaCrearNotaPedido') idLista = $scope.notaPedido.precioCondicion; $scope.articulosTabla = []; }; + $scope.abrirModalListaPrecio = function() { + var modalInstance = $uibModal.open( + { + ariaLabelledBy: 'Busqueda de Precio Condición', + templateUrl: 'modal-precio-condicion.html', + controller: 'focaModalPrecioCondicionController', + size: 'lg' + } + ); + modalInstance.result.then( + function(precioCondicion) { + $scope.notaPedido.precioCondicion = precioCondicion.nombre; + }, function() { + + } + ); + }; } ] ) -- 1.9.1