diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form5/Form5Controller.js b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form5/Form5Controller.js index 41a30bb0..c2de55a0 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form5/Form5Controller.js +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form5/Form5Controller.js @@ -147,6 +147,17 @@ }; $scope.$on('afterrender', function(event, args){ + + //listeners + $scope.$watch('editing.ficha.trabalhador_data_nascimento', function(newVal, oldVal){ + + if(newVal != null && newVal != oldVal) + { + var a = moment(new Date()); + var b = moment(newVal); + $scope.calculatedAge = a.diff(b, 'years'); + } + }); }); }); \ No newline at end of file diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/SearchForm/SearchView.html b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/SearchForm/SearchView.html index f9800115..d1970f19 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/SearchForm/SearchView.html +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/SearchForm/SearchView.html @@ -105,7 +105,7 @@ - {{item.concluido ? 'Concluido' : 'Em Aberto'}} + {{item.concluido ? 'ConcluĂ­do' : 'Em Aberto'}}