From 25d263945bba5ff5cac0c9400d26d53895e84be9 Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Fri, 22 Feb 2019 15:53:53 -0300 Subject: [PATCH] modales xl, al abrir ocultan boton teclado --- src/js/controller.js | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index fec3470..a5eeea4 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -16,44 +16,68 @@ angular.module('focaInformes') focaBotoneraLateralService.showGuardar(false); $scope.seleccionarHojasDeRuta = function() { + focaBotoneraLateralService.showTeclado(false); $uibModal.open( { ariaLabelledBy: 'Informes de hojas de ruta', templateUrl: 'informe-hoja-ruta.html', controller: 'focaModalInformeHojaRutaController', - size: 'lg' + size: 'xl' } - ); + ) + .result.then(function(){ + focaBotoneraLateralService.showTeclado(true); + }, function(){ + focaBotoneraLateralService.showTeclado(true); + }); }; $scope.seleccionarChoferes = function() { + focaBotoneraLateralService.showTeclado(false); $uibModal.open( { ariaLabelledBy: 'Informes de choferes', templateUrl: 'informe-chofer.html', controller: 'focaModalInformeChoferController', - size: 'lg' + size: 'xl' } - ); + ) + .result.then(function(){ + focaBotoneraLateralService.showTeclado(true); + }, function(){ + focaBotoneraLateralService.showTeclado(true); + }); }; $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { + focaBotoneraLateralService.showTeclado(false); $uibModal.open( { ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', templateUrl: 'informe-litros-km-unidad.html', controller: 'focaModalInformeLitrosKmUnidadController', - size: 'lg' + size: 'xl' } - ); + ) + .result.then(function(){ + focaBotoneraLateralService.showTeclado(true); + }, function(){ + focaBotoneraLateralService.showTeclado(true); + }); }; $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { + focaBotoneraLateralService.showTeclado(false); $uibModal.open( { ariaLabelledBy: 'Informe general por unidad de reparto', templateUrl: 'informe-general-unidad.html', controller: 'focaModalInformeGeneralUnidadController', - size: 'lg' + size: 'xl' } - ); + ) + .result.then(function(){ + focaBotoneraLateralService.showTeclado(true); + }, function(){ + focaBotoneraLateralService.showTeclado(true); + }); }; } ]); -- 1.9.1