Commit 25d263945bba5ff5cac0c9400d26d53895e84be9
1 parent
e7d8fed5ab
Exists in
master
modales xl, al abrir ocultan boton teclado
Showing
1 changed file
with
32 additions
and
8 deletions
 
Show diff stats
src/js/controller.js
| 1 | angular.module('focaInformes') | 1 | angular.module('focaInformes') | 
| 2 | .controller('focaInformesController', | 2 | .controller('focaInformesController', | 
| 3 | [ | 3 | [ | 
| 4 | '$scope', | 4 | '$scope', | 
| 5 | 'focaInformesService', | 5 | 'focaInformesService', | 
| 6 | 'focaBotoneraLateralService', | 6 | 'focaBotoneraLateralService', | 
| 7 | '$uibModal', | 7 | '$uibModal', | 
| 8 | function($scope, focaInformesService, focaBotoneraLateralService, $uibModal) | 8 | function($scope, focaInformesService, focaBotoneraLateralService, $uibModal) | 
| 9 | { | 9 | { | 
| 10 | $scope.now = new Date(); | 10 | $scope.now = new Date(); | 
| 11 | $scope.botonera = focaInformesService.getBotonera(); | 11 | $scope.botonera = focaInformesService.getBotonera(); | 
| 12 | 12 | ||
| 13 | //SETEO BOTONERA LATERAL | 13 | //SETEO BOTONERA LATERAL | 
| 14 | focaBotoneraLateralService.showSalir(true); | 14 | focaBotoneraLateralService.showSalir(true); | 
| 15 | focaBotoneraLateralService.showPausar(false); | 15 | focaBotoneraLateralService.showPausar(false); | 
| 16 | focaBotoneraLateralService.showGuardar(false); | 16 | focaBotoneraLateralService.showGuardar(false); | 
| 17 | 17 | ||
| 18 | $scope.seleccionarHojasDeRuta = function() { | 18 | $scope.seleccionarHojasDeRuta = function() { | 
| 19 | focaBotoneraLateralService.showTeclado(false); | ||
| 19 | $uibModal.open( | 20 | $uibModal.open( | 
| 20 | { | 21 | { | 
| 21 | ariaLabelledBy: 'Informes de hojas de ruta', | 22 | ariaLabelledBy: 'Informes de hojas de ruta', | 
| 22 | templateUrl: 'informe-hoja-ruta.html', | 23 | templateUrl: 'informe-hoja-ruta.html', | 
| 23 | controller: 'focaModalInformeHojaRutaController', | 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 | $scope.seleccionarChoferes = function() { | 34 | $scope.seleccionarChoferes = function() { | 
| 35 | focaBotoneraLateralService.showTeclado(false); | ||
| 29 | $uibModal.open( | 36 | $uibModal.open( | 
| 30 | { | 37 | { | 
| 31 | ariaLabelledBy: 'Informes de choferes', | 38 | ariaLabelledBy: 'Informes de choferes', | 
| 32 | templateUrl: 'informe-chofer.html', | 39 | templateUrl: 'informe-chofer.html', | 
| 33 | controller: 'focaModalInformeChoferController', | 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 | $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { | 50 | $scope.seleccionarLitrosPorKmRecorridosPorUnidadDeReparto = function() { | 
| 51 | focaBotoneraLateralService.showTeclado(false); | ||
| 39 | $uibModal.open( | 52 | $uibModal.open( | 
| 40 | { | 53 | { | 
| 41 | ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', | 54 | ariaLabelledBy: 'Informes de litros por km recorridos por unidad de reparto', | 
| 42 | templateUrl: 'informe-litros-km-unidad.html', | 55 | templateUrl: 'informe-litros-km-unidad.html', | 
| 43 | controller: 'focaModalInformeLitrosKmUnidadController', | 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 | $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { | 66 | $scope.seleccionarInformeGeneralPorUnidadDeReparto = function() { | 
| 67 | focaBotoneraLateralService.showTeclado(false); | ||
| 49 | $uibModal.open( | 68 | $uibModal.open( | 
| 50 | { | 69 | { | 
| 51 | ariaLabelledBy: 'Informe general por unidad de reparto', | 70 | ariaLabelledBy: 'Informe general por unidad de reparto', | 
| 52 | templateUrl: 'informe-general-unidad.html', | 71 | templateUrl: 'informe-general-unidad.html', | 
| 53 | controller: 'focaModalInformeGeneralUnidadController', | 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 | ]); | 
| 60 | 84 |