From 60d60eac9c885d897b4641063769608a45eb66fb Mon Sep 17 00:00:00 2001 From: efernandez Date: Thu, 8 Nov 2018 12:02:11 -0300 Subject: [PATCH] cambio inputs a numbers porque hice andar el teclado para numeros --- src/js/controller.js | 17 ++++++++++++++--- src/views/nota-pedido.html | 17 ++++++++++------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 9f869fc..e8295cd 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,10 +1,10 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', [ '$scope', '$uibModal', '$location', '$filter', 'crearNotaPedidoService', - 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', + 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', '$rootScope', function( $scope, $uibModal, $location, $filter, crearNotaPedidoService, focaModalService, - focaSeguimientoService, notaPedidoBusinessService + focaSeguimientoService, notaPedidoBusinessService, $rootScope ) { $scope.botonera = [ {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}}, @@ -571,8 +571,19 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', $scope.articuloACargar = {}; $scope.cargando = true; }; - + //Recibe aviso si el teclado está en uso + // $rootScope.$on('usarTeclado', function(event, data) { + // if(data) { + // $scope.mostrarTeclado = true; + // return; + // } + // $scope.mostrarTeclado = false; + // }) $scope.selectFocus = function($event) { + //Si el teclado esta en uso no selecciona el valor + // if($scope.mostrarTeclado) { + // return; + // } $event.target.select(); }; diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index 5862d16..fbb1d51 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -133,11 +133,11 @@ ng-show="articulo.editCantidad" ng-model="articulo.cantidad" class="form-control" - type="text" + type="number" + min="1" foca-focus="articulo.editCantidad" ng-keypress="editarArticulo($event.keyCode, articulo)" ng-focus="selectFocus($event)" - ng-blur="parsearATexto(articulo)" teclado-virtual > -- 1.9.1