From 92521b388e83d3a4e3eb203ca2b6f45d35d77ec8 Mon Sep 17 00:00:00 2001 From: Pablo Marco del Pont Date: Tue, 23 Oct 2018 16:48:41 -0300 Subject: [PATCH] =?UTF-8?q?Agregu=C3=A9=20foca-modal-moneda.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/js/controller.js b/src/js/controller.js index 51d4b88..7a63ce4 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -3,7 +3,7 @@ angular.module('focaCrearNotaPedido') ['$scope', '$uibModal', 'crearNotaPedidoService', 'focaModalService', function($scope, $uibModal, crearNotaPedidoService, focaModalService) { $scope.botonera = [ - {texto: 'moneda', accion: function() {console.log('moneda');}}, + {texto: 'moneda', accion: function() {$scope.abrirModalMoneda();}}, { texto: 'precios y condiciones', accion: function() {$scope.abrirModalListaPrecio();}}, @@ -283,6 +283,23 @@ angular.module('focaCrearNotaPedido') } ); }; + $scope.abrirModalMoneda = function() { + var modalInstance = $uibModal.open( + { + ariaLabelledBy: 'Busqueda de Moneda', + templateUrl: 'modal-moneda.html', + controller: 'focaModalMonedaController', + size: 'lg' + } + ); + modalInstance.result.then( + function(moneda) { + console.log('moneda', moneda); + }, function() { + + } + ); + }; $scope.agregarATabla = function(key) { if(key === 13) { if($scope.articuloACargar.cantidad === undefined || -- 1.9.1