Commit 035730a753677e169c9a4fd2fdfd894e3d40c7ba
1 parent
50a0d78717
Exists in
master
Auto stash before merge of "master" and "upstream/master"
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -42,13 +42,14 @@ angular.module('focaModalVehiculo') |
| 42 | 42 | {$: $scope.filters} |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | - if(pressed && $scope.filteredVehiculos.length === 0) { | |
| 45 | + if(pressed && $scope.filteredVehiculos.length === 0){ | |
| 46 | 46 | $timeout(function() { |
| 47 | 47 | angular.element('#search')[0].focus(); |
| 48 | 48 | $scope.filters = ''; |
| 49 | 49 | }); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + | |
| 52 | 53 | $scope.lastPage = Math.ceil( |
| 53 | 54 | $scope.filteredVehiculos.length / $scope.numPerPage |
| 54 | 55 | ); |
src/views/modal-vehiculo.html
| ... | ... | @@ -7,9 +7,9 @@ |
| 7 | 7 | <input |
| 8 | 8 | ladda="searchLoading" |
| 9 | 9 | type="text" |
| 10 | - class="form-control form-control-sm" | |
| 10 | + class="form-control" | |
| 11 | 11 | id="search" |
| 12 | - placeholder="Búsqueda" | |
| 12 | + placeholder="Busqueda" | |
| 13 | 13 | ng-model="filters" |
| 14 | 14 | ng-change="search()" |
| 15 | 15 | ng-keydown="busquedaDown($event.keyCode)" |