Commit 1bdae648a5110d6f262c8a92f4621960886da933
Exists in
master
Merge branch 'master' into 'master'
selecciona texto cuando abre modal See merge request !5
Showing
2 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -4,9 +4,13 @@ angular.module('focaModalEfectivo') |
4 | 4 | '$scope', |
5 | 5 | '$uibModalInstance', |
6 | 6 | 'sugerido', |
7 | - function($scope, $uibModalInstance, sugerido) { | |
7 | + '$timeout', | |
8 | + function($scope, $uibModalInstance, sugerido, $timeout) { | |
8 | 9 | if(sugerido && sugerido < 0) { |
9 | 10 | $scope.efectivo = Math.abs(sugerido); |
11 | + $timeout(function() { | |
12 | + angular.element('#importe')[0].select(); | |
13 | + }); | |
10 | 14 | } |
11 | 15 | $scope.aceptar = function(key) { |
12 | 16 | if(key === 13 && parseFloat($scope.efectivo)) { |