Commit d1dc09d5e86267f4397ce9c221885bcd70dce0bf
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !12
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -29,17 +29,17 @@ angular.module('focaModalFactura') |
29 | 29 | //METODOS |
30 | 30 | $scope.busquedaPress = function(key) { |
31 | 31 | if (key === 13) { |
32 | - //TODO Validaciones con alertas | |
33 | 32 | if(!$scope.fechaDesde) { |
34 | - alert('INGRESE FECHA DESDE'); | |
33 | + focaModalService.alert('INGRESE FECHA DESDE'); | |
35 | 34 | return; |
36 | 35 | } |
37 | 36 | if(!$scope.fechaHasta) { |
38 | - alert('INGRESE FECHA HASTA'); | |
37 | + focaModalService.alert('INGRESE FECHA HASTA'); | |
39 | 38 | return; |
40 | 39 | } |
41 | 40 | if($scope.fechaDesde > $scope.fechaHasta) { |
42 | - alert('La fecha desde no puede ser mayor a la fecha hasta'); | |
41 | + focaModalService | |
42 | + .alert('La fecha desde no puede ser mayor a la fecha hasta'); | |
43 | 43 | return; |
44 | 44 | } |
45 | 45 | $scope.searchLoading = true; |