Commit 0b2afc9c8e2902c0ca99d9bcfdf10f7795fba8ed
1 parent
6551d4553e
Exists in
master
and in
1 other branch
volver a busqueda en primer seleccionado
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -114,7 +114,7 @@ angular.module('focaBusquedaProductos') |
114 | 114 | } |
115 | 115 | |
116 | 116 | function anterior(key) { |
117 | - if ($scope.selectedProducto === 0) { | |
117 | + if ($scope.selectedProducto === 0 && $scope.currentPage > 1) { | |
118 | 118 | retrocederPagina(); |
119 | 119 | } else { |
120 | 120 | $scope.selectedProducto--; |