Commit 11408cb3fe599e5b21d953ab6877a02c82d06e66

Authored by Jose Pinto
1 parent 95334422e5
Exists in master and in 1 other branch develop

reemplazo alert por modal

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -31,15 +31,16 @@ angular.module('focaModalFactura')
31 31 if (key === 13) {
32 32 //TODO Validaciones con alertas
33 33 if(!$scope.fechaDesde) {
34   - alert('INGRESE FECHA DESDE');
  34 + focaModalService.alert('INGRESE FECHA DESDE');
35 35 return;
36 36 }
37 37 if(!$scope.fechaHasta) {
38   - alert('INGRESE FECHA HASTA');
  38 + focaModalService.alert('INGRESE FECHA HASTA');
39 39 return;
40 40 }
41 41 if($scope.fechaDesde > $scope.fechaHasta) {
42   - alert('La fecha desde no puede ser mayor a la fecha hasta');
  42 + focaModalService
  43 + .alert('La fecha desde no puede ser mayor a la fecha hasta');
43 44 return;
44 45 }
45 46 $scope.searchLoading = true;