Commit fdf3951dbbdf5959d944d808e7fa1b6a608e4ced
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !5
Showing
1 changed file
Show diff stats
src/js/controller.js
| ... | ... | @@ -16,44 +16,68 @@ angular.module('focaInformes') |
| 16 | 16 | focaBotoneraLateralService.showGuardar(false); |
| 17 | 17 | |
| 18 | 18 | $scope.seleccionarHojasDeRuta = function() { |
| 19 | + focaBotoneraLateralService.showTeclado(false); | |
| 19 | 20 | $uibModal.open( |
| 20 | 21 | { |
| 21 | 22 | ariaLabelledBy: 'Informes de hojas de ruta', |
| 22 | 23 | templateUrl: 'informe-hoja-ruta.html', |
| 23 | 24 | controller: 'focaModalInformeHojaRutaController', |
| 24 | - size: 'lg' | |
| 25 | + size: 'xl' | |
| 25 | 26 | } |
| 26 | - ); | |
| 27 | + ) | |
| 28 | + .result.then(function(){ | |
| 29 | + focaBotoneraLateralService.showTeclado(true); | |
| 30 | + }, function(){ | |
| 31 | + focaBotoneraLateralService.showTeclado(true); | |
| 32 | + }); | |
| 27 | 33 | }; |
| 28 | 34 | $scope.seleccionarChoferes = function() { |
| 35 | + focaBotoneraLateralService.showTeclado(false); | |
| 29 | 36 | $uibModal.open( |
| 30 | 37 | { |
| 31 | 38 | ariaLabelledBy: 'Informes de choferes', |
| 32 | 39 | templateUrl: 'informe-chofer.html', |
| 33 | 40 | controller: 'focaModalInformeChoferController', |
| 34 | - size: 'lg' | |
| 41 | + size: 'xl' | |
| 35 | 42 | } |
| 36 | - ); | |
| 43 | + ) | |
| 44 | + .result.then(function(){ | |
| 45 | + focaBotoneraLateralService.showTeclado(true); | |
| 46 | + }, function(){ | |
| 47 | + focaBotoneraLateralService.showTeclado(true); | |
| 48 | + }); | |
| 37 | 49 | }; |
| 38 | 50 | $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { |
| 51 | + focaBotoneraLateralService.showTeclado(false); | |
| 39 | 52 | $uibModal.open( |
| 40 | 53 | { |
| 41 | 54 | ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', |
| 42 | 55 | templateUrl: 'informe-litros-km-unidad.html', |
| 43 | 56 | controller: 'focaModalInformeLitrosKmUnidadController', |
| 44 | - size: 'lg' | |
| 57 | + size: 'xl' | |
| 45 | 58 | } |
| 46 | - ); | |
| 59 | + ) | |
| 60 | + .result.then(function(){ | |
| 61 | + focaBotoneraLateralService.showTeclado(true); | |
| 62 | + }, function(){ | |
| 63 | + focaBotoneraLateralService.showTeclado(true); | |
| 64 | + }); | |
| 47 | 65 | }; |
| 48 | 66 | $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { |
| 67 | + focaBotoneraLateralService.showTeclado(false); | |
| 49 | 68 | $uibModal.open( |
| 50 | 69 | { |
| 51 | 70 | ariaLabelledBy: 'Informe general por unidad de reparto', |
| 52 | 71 | templateUrl: 'informe-general-unidad.html', |
| 53 | 72 | controller: 'focaModalInformeGeneralUnidadController', |
| 54 | - size: 'lg' | |
| 73 | + size: 'xl' | |
| 55 | 74 | } |
| 56 | - ); | |
| 75 | + ) | |
| 76 | + .result.then(function(){ | |
| 77 | + focaBotoneraLateralService.showTeclado(true); | |
| 78 | + }, function(){ | |
| 79 | + focaBotoneraLateralService.showTeclado(true); | |
| 80 | + }); | |
| 57 | 81 | }; |
| 58 | 82 | } |
| 59 | 83 | ]); |