diff --git a/src/js/controller.js b/src/js/controller.js index cccf99b..0b15b72 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -36,11 +36,17 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll getSeguimiento(); } }; + + $scope.fecha = function() { + getSeguimiento(); + }; function getSeguimiento () { var datos = { actividad: $scope.actividad, - idUsuario: $scope.idUsuario + idUsuario: $scope.idUsuario, + fechaDesde: $scope.now, + fechaHasta: $scope.now }; focaAdminSeguimientoService.obtenerActividad(datos).then(function(datos) { diff --git a/src/views/foca-admin-seguimiento.html b/src/views/foca-admin-seguimiento.html index 6f02c02..f503d18 100644 --- a/src/views/foca-admin-seguimiento.html +++ b/src/views/foca-admin-seguimiento.html @@ -14,6 +14,7 @@ ng-model="now" class="btn col-12 my-1" foca-focus="true" + ng-blur="fecha()" hasta-hoy />